mirror of
https://github.com/processing/processing4.git
synced 2026-02-12 01:50:44 +01:00
unfix mac cosmetic fixes on windows.. yay sizing diffs on platforms!
This commit is contained in:
@@ -171,7 +171,8 @@ public class PdeEditorHeader extends JComponent {
|
||||
// disable rename on the first tab
|
||||
renameItem.setEnabled(sketch.current != sketch.code[0]);
|
||||
|
||||
int x = 0; //PdePreferences.GUI_SMALL;
|
||||
//int x = 0; //PdePreferences.GUI_SMALL;
|
||||
int x = (PdeBase.platform == PdeBase.MACOSX) ? 0 : 1;
|
||||
for (int i = 0; i < sketch.codeCount; i++) {
|
||||
PdeCode code = sketch.code[i];
|
||||
|
||||
@@ -364,10 +365,16 @@ public class PdeEditorHeader extends JComponent {
|
||||
}
|
||||
|
||||
public Dimension getMinimumSize() {
|
||||
return new Dimension(300, PdePreferences.GRID_SIZE); // - 1);
|
||||
if (PdeBase.platform == PdeBase.MACOSX) {
|
||||
return new Dimension(300, PdePreferences.GRID_SIZE);
|
||||
}
|
||||
return new Dimension(300, PdePreferences.GRID_SIZE - 1);
|
||||
}
|
||||
|
||||
public Dimension getMaximumSize() {
|
||||
return new Dimension(3000, PdePreferences.GRID_SIZE); // - 1);
|
||||
if (PdeBase.platform == PdeBase.MACOSX) {
|
||||
return new Dimension(3000, PdePreferences.GRID_SIZE);
|
||||
}
|
||||
return new Dimension(3000, PdePreferences.GRID_SIZE - 1);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user