Skip to content

Commit 22d5be3

Browse files
committed
Moving the IdealWindow's position a little upper
1 parent 9a5b22e commit 22d5be3

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/com/reveal/codetimemachine/Commits3DView.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -976,12 +976,12 @@ private void updateMainEditorWindowBoundaryAfterComponentResize()
976976

977977
private void updateTopIdealLayerBoundary()
978978
{
979-
final int FREE_SPACE_VERTICAL = 100, FREE_SPACE_HORIZONTAL = 60;
980-
topIdealLayerDimention_doubled = new Dimension( 3*getSize().width/5, 2*getSize().height/3 /*2/3 of whole vertical*/);
979+
final int BOTTOM_FREE_SPACE_VERTICAL = 20;
980+
topIdealLayerDimention_doubled = new Dimension( 3*getSize().width/5, 2*getSize().height/3 /*2/3 of whole vertical*/ - BOTTOM_FREE_SPACE_VERTICAL);
981981
topIdealLayerDimention_doubled.width *= MyRenderer.getInstance().BASE_DEPTH;
982982
topIdealLayerDimention_doubled.height *= MyRenderer.getInstance().BASE_DEPTH;
983983

984-
topIdealLayerCenterPos = new Point(centerOfThisComponent.x, 2*getSize().height/3 /*Fit from bottom*/);
984+
topIdealLayerCenterPos = new Point(centerOfThisComponent.x, 2*getSize().height/3 - BOTTOM_FREE_SPACE_VERTICAL /*Fit from bottom minus BOTTOM_FREE_SPACE_VERTICAL*/);
985985

986986
topIdealLayer_left_x = topIdealLayerCenterPos.x - topIdealLayerDimention_doubled.width/4;
987987
topIdealLayer_right_x = topIdealLayerCenterPos.x + topIdealLayerDimention_doubled.width/4;

0 commit comments

Comments
 (0)