Lines 335-348
Link Here
|
335 |
sashBounds.width = SASH_WIDTH; |
335 |
sashBounds.width = SASH_WIDTH; |
336 |
|
336 |
|
337 |
if (children[0].fixedHeight()) { |
337 |
if (children[0].fixedHeight()) { |
338 |
leftBounds.height = children[0].getBounds().height; |
338 |
leftBounds.height = children[0].getMinimumHeight(); |
339 |
} |
339 |
} |
340 |
|
340 |
|
341 |
rightBounds.x = sashBounds.x + sashBounds.width; |
341 |
rightBounds.x = sashBounds.x + sashBounds.width; |
342 |
rightBounds.width = bounds.x + bounds.width - rightBounds.x; |
342 |
rightBounds.width = bounds.x + bounds.width - rightBounds.x; |
343 |
|
343 |
|
344 |
if (children[1].fixedHeight()) { |
344 |
if (children[1].fixedHeight()) { |
345 |
rightBounds.height = children[1].getBounds().height; |
345 |
rightBounds.height = children[1].getMinimumHeight(); |
346 |
} |
346 |
} |
347 |
|
347 |
|
348 |
adjustWidths(bounds, leftBounds, rightBounds, sashBounds); |
348 |
adjustWidths(bounds, leftBounds, rightBounds, sashBounds); |
Lines 351-359
Link Here
|
351 |
int redistribute = bounds.height - SASH_WIDTH - total; |
351 |
int redistribute = bounds.height - SASH_WIDTH - total; |
352 |
|
352 |
|
353 |
if (children[0].fixedHeight()) { |
353 |
if (children[0].fixedHeight()) { |
354 |
leftBounds.height = children[0].getBounds().height; |
354 |
leftBounds.height = children[0].getMinimumHeight(); |
355 |
} else if (children[1].fixedHeight()) { |
355 |
} else if (children[1].fixedHeight()) { |
356 |
leftBounds.height = bounds.height - children[1].getBounds().height - SASH_WIDTH; |
356 |
leftBounds.height = bounds.height - children[1].getMinimumHeight() - SASH_WIDTH; |
357 |
} else { |
357 |
} else { |
358 |
leftBounds.height = left + (int)Math.round(redistribute * wLeft / wTotal); |
358 |
leftBounds.height = left + (int)Math.round(redistribute * wLeft / wTotal); |
359 |
} |
359 |
} |
Lines 362-368
Link Here
|
362 |
rightBounds.y = sashBounds.y + sashBounds.height; |
362 |
rightBounds.y = sashBounds.y + sashBounds.height; |
363 |
|
363 |
|
364 |
if (children[1].fixedHeight()) { |
364 |
if (children[1].fixedHeight()) { |
365 |
rightBounds.height = children[1].getBounds().height; |
365 |
rightBounds.height = children[1].getMinimumHeight(); |
366 |
} else { |
366 |
} else { |
367 |
rightBounds.height = bounds.y + bounds.height - rightBounds.y; |
367 |
rightBounds.height = bounds.y + bounds.height - rightBounds.y; |
368 |
} |
368 |
} |