File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -73,6 +73,7 @@ public class EditorHeader extends JComponent {
7373
7474 static final int PIECE_WIDTH = scale (4 );
7575 static final int PIECE_HEIGHT = scale (33 );
76+ static final int TAB_HEIGHT = scale (27 );
7677
7778 // value for the size bars, buttons, etc
7879 // TODO: Should be a Theme value?
@@ -270,8 +271,8 @@ public void paintComponent(Graphics screen) {
270271 int textLeft = contentLeft + (pieceWidth - textWidth ) / 2 ;
271272
272273 g .setColor (textColor [state ]);
273- int baseline = ( sizeH + fontAscent ) / 2 ;
274- //g.drawString(sketch.code[i].name, textLeft, baseline);
274+ int tabMarginTop = sizeH - TAB_HEIGHT ;
275+ int baseline = tabMarginTop + (( TAB_HEIGHT + fontAscent ) / 2 ) ;
275276 g .drawString (text , textLeft , baseline );
276277
277278 g .drawImage (pieces [state ][RIGHT ], x , 0 , null );
You can’t perform that action at this time.
0 commit comments