mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2026-02-12 15:07:11 -06:00
ToolBar:
- swap margins if orientation changes when floating - include toolbar margin in grip position calculation
This commit is contained in:
@@ -204,6 +204,7 @@ class DemoFrame
|
||||
|
||||
//======== toolBar1 ========
|
||||
{
|
||||
toolBar1.setMargin(new Insets(3, 3, 3, 3));
|
||||
toolBar1.add(backButton);
|
||||
toolBar1.add(forwardButton);
|
||||
toolBar1.addSeparator();
|
||||
|
||||
@@ -14,6 +14,7 @@ new FormModel {
|
||||
"$sizePolicy": 2
|
||||
add( new FormContainer( "javax.swing.JToolBar", new FormLayoutManager( class javax.swing.JToolBar ) ) {
|
||||
name: "toolBar1"
|
||||
"margin": new java.awt.Insets( 3, 3, 3, 3 )
|
||||
add( new FormComponent( "javax.swing.JButton" ) {
|
||||
name: "backButton"
|
||||
} )
|
||||
|
||||
Reference in New Issue
Block a user