Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsHow to prevent negative values in width, height portions of bounds
https://www.eclipse.org/forums/index.php/mv/msg/369058/900274/#msg_900274
I tried even by hard-coding a set of minimumSize in the constructor of my component to positive values, but to no avail.
Thanks,
Ben]]>Ben Wilson2012-08-06T09:55:58-00:00Re: How to prevent negative values in width, height portions of bounds
https://www.eclipse.org/forums/index.php/mv/msg/369058/900337/#msg_900337
Moreover, it would need to be done for each layout.
Do to this, you will need to integrate this check at model level, for example:
org.eclipse.wb.internal.swing.model.layout.absolute.AbsoluteLayoutInfo.setBoundsWidth(ComponentInfo, int)
org.eclipse.wb.internal.swing.model.layout.absolute.AbsoluteLayoutInfo.command_BOUNDS(ComponentInfo, Point, Dimension)
or at GEF level
org.eclipse.wb.internal.swing.model.layout.absolute.AbsoluteLayoutInfo.command_BOUNDS(ComponentInfo, Point, Dimension)
org.eclipse.wb.internal.core.gef.policy.layout.absolute.AbsoluteBasedSelectionEditPolicy.createResizeHandle(int)]]>Konstantin Scheglov2012-08-06T14:38:25-00:00