Revision: 552
Author: allain.lalonde
Date: Thu Jul 23 14:47:33 2009
Log: Very strange slider behaviour in mac. Trying a fix.
http://code.google.com/p/piccolo2d/source/detail?r=552
Modified:
/piccolo2d.java/trunk/extras/src/main/java/edu/umd/cs/piccolox/pswing/PSwing.java
=======================================
---
/piccolo2d.java/trunk/extras/src/main/java/edu/umd/cs/piccolox/pswing/PSwing.java
Thu Jul 23 08:41:42 2009
+++
/piccolo2d.java/trunk/extras/src/main/java/edu/umd/cs/piccolox/pswing/PSwing.java
Thu Jul 23 14:47:33 2009
@@ -297,12 +297,11 @@
Border border = component.getBorder();
int width = (int) Math.max(component.getMinimumSize().width,
component.getPreferredSize().width);
- int height = (int) Math.max(component.getMinimumSize().height,
component.getPreferredSize().height);
+ int height = (int) component.getPreferredSize().height;
if (border != null) {
Insets borderInsets = border.getBorderInsets(component);
width += borderInsets.left + borderInsets.right;
- height += borderInsets.top + borderInsets.bottom;
}
component.setBounds(0, 0, width, height);
--~--~---------~--~----~------------~-------~--~----~
Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en
-~----------~----~----~----~------~----~------~--~---