Lines 839-845
Link Here
|
839 |
rects[0] = sash.getBounds(); |
839 |
rects[0] = sash.getBounds(); |
840 |
tracker.setCursor(SharedCursors.SIZEE); |
840 |
tracker.setCursor(SharedCursors.SIZEE); |
841 |
tracker.setRectangles(rects); |
841 |
tracker.setRectangles(rects); |
842 |
tracker.setStippled(true); |
|
|
843 |
if (tracker.open()) { |
842 |
if (tracker.open()) { |
844 |
int deltaX = sash.getBounds().x - tracker.getRectangles()[0].x; |
843 |
int deltaX = sash.getBounds().x - tracker.getRectangles()[0].x; |
845 |
if (dock == PositionConstants.WEST) |
844 |
if (dock == PositionConstants.WEST) |
Lines 994-1024
Link Here
|
994 |
return; |
993 |
return; |
995 |
|
994 |
|
996 |
Rectangle area = getClientArea(); |
995 |
Rectangle area = getClientArea(); |
997 |
if (title.getVisible()) { |
996 |
boolean buttonVisible = button.getVisible(); |
998 |
boolean buttonVisible = button.getVisible(); |
997 |
Point titleSize = title.computeSize(-1, -1); |
999 |
Point titleSize = title.computeSize(-1, -1); |
998 |
Point buttonSize = buttonVisible ? button.computeSize(-1, -1) |
1000 |
Point buttonSize = buttonVisible ? button.computeSize(-1, -1) |
999 |
: new Point(0, 0); |
1001 |
: new Point(0, 0); |
1000 |
cachedTitleHeight = Math.max(titleSize.y, buttonSize.y); |
1002 |
cachedTitleHeight = Math.max(titleSize.y, buttonSize.y); |
1001 |
if (buttonVisible) { |
1003 |
if (buttonVisible) { |
1002 |
buttonSize.x = Math.max(cachedTitleHeight, buttonSize.x); |
1004 |
buttonSize.x = Math.max(cachedTitleHeight, buttonSize.x); |
1003 |
} |
1005 |
} |
1004 |
if (dock == PositionConstants.EAST) { |
1006 |
if (dock == PositionConstants.EAST) { |
1005 |
int buttonX = area.width - buttonSize.x; |
1007 |
int buttonX = area.width - buttonSize.x; |
1006 |
button.setBounds(buttonX, 0, buttonSize.x, cachedTitleHeight); |
1008 |
button.setBounds(buttonX, 0, buttonSize.x, cachedTitleHeight); |
1007 |
title.setBounds(0, 0, buttonX, cachedTitleHeight); |
1009 |
title.setBounds(0, 0, buttonX, cachedTitleHeight); |
1008 |
} else { |
1010 |
} else { |
1009 |
int titleX = buttonSize.x; |
1011 |
int titleX = buttonSize.x; |
1010 |
button.setBounds(0, 0, buttonSize.x, cachedTitleHeight); |
1012 |
button.setBounds(0, 0, buttonSize.x, cachedTitleHeight); |
1011 |
title.setBounds(titleX, 0, area.width - titleX, cachedTitleHeight); |
1013 |
title.setBounds(titleX, 0, area.width - titleX, cachedTitleHeight); |
|
|
1014 |
} |
1015 |
area.y += cachedTitleHeight; |
1016 |
area.height -= cachedTitleHeight; |
1017 |
} |
1012 |
} |
|
|
1013 |
area.y += cachedTitleHeight; |
1014 |
area.height -= cachedTitleHeight; |
1018 |
pCtrl.setBounds(area); |
1015 |
pCtrl.setBounds(area); |
1019 |
} |
1016 |
} |
1020 |
protected void updateState() { |
1017 |
protected void updateState() { |
1021 |
title.setVisible(isInState(STATE_EXPANDED) || isInState(STATE_PINNED_OPEN)); |
|
|
1022 |
button.setVisible(isInState(STATE_PINNED_OPEN)); |
1018 |
button.setVisible(isInState(STATE_PINNED_OPEN)); |
1023 |
if (transferFocus && button.getVisible()) { |
1019 |
if (transferFocus && button.getVisible()) { |
1024 |
transferFocus = false; |
1020 |
transferFocus = false; |