Skip to content

Commit c8ff83a

Browse files
author
Open Lowcode SAS
committed
Close #112
1 parent 9307738 commit c8ff83a

File tree

3 files changed

+16
-11
lines changed

3 files changed

+16
-11
lines changed

src/org/openlowcode/client/graphic/widget/CComponentBand.java

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -133,22 +133,24 @@ public CComponentBand(MessageReader reader, CPageSignifPath parentpath) throws O
133133
*/
134134
public static Pane returnBandPane(int direction) {
135135
Pane thispane=null;
136-
boolean valid=false;
137136
if (direction == DIRECTION_DOWN) {
138137
thispane = new VBox(8);
139138
thispane.setPadding(new Insets(5, 5, 5, 0));
140-
valid=true;
139+
thispane.setBackground(new Background(new BackgroundFill(Color.WHITE, null, null)));
140+
return thispane;
141141
}
142142
if (direction == DIRECTION_RIGHT) {
143+
143144
thispane = new HBox(8);
144-
thispane.setPadding(new Insets(0, 0, 0, 0));
145-
valid=true;
145+
thispane.setPadding(new Insets(2, 0, 0, 0));
146+
thispane.setBackground(new Background(new BackgroundFill(Color.WHITE, null, null)));
147+
thispane.setBorder(new Border(new BorderStroke(Color.LIGHTGREY, Color.LIGHTGREY, Color.LIGHTGREY, Color.LIGHTGREY,
148+
BorderStrokeStyle.SOLID, BorderStrokeStyle.NONE, BorderStrokeStyle.NONE, BorderStrokeStyle.NONE,
149+
CornerRadii.EMPTY, new BorderWidths(1), Insets.EMPTY)));
150+
return thispane;
146151
}
147-
if (!valid) throw new RuntimeException("Direction "+direction+" not supported");
152+
throw new RuntimeException("Direction "+direction+" not supported");
148153

149-
thispane.setBackground(new Background(new BackgroundFill(Color.WHITE, null, null)));
150-
151-
return thispane;
152154
}
153155

154156
private Pane bandpane;
@@ -170,6 +172,7 @@ public Node getNode(
170172
thispane.getChildren().add(currentnode);
171173

172174
}
175+
173176
return thispane;
174177
}
175178

src/org/openlowcode/client/graphic/widget/CPopupButton.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
import javafx.event.EventHandler;
3030
import javafx.scene.Node;
3131
import javafx.scene.control.Button;
32+
import javafx.scene.control.ContentDisplay;
3233
import javafx.scene.control.Label;
3334
import javafx.scene.control.OverrunStyle;
3435
import javafx.scene.control.TabPane;
@@ -112,6 +113,7 @@ public Node getNode(
112113
hamburgerlabel.setFont(Font.font(hamburgerlabel.getFont().getFamily(), FontWeight.THIN,
113114
hamburgerlabel.getFont().getSize() * 0.5f));
114115
button.setGraphic(hamburgerlabel);
116+
button.setContentDisplay(ContentDisplay.RIGHT);
115117
button.setMinSize(Button.USE_PREF_SIZE, Button.USE_PREF_SIZE);
116118
button.textOverrunProperty().set(OverrunStyle.CLIP);
117119
if (rollovertip != null)

src/org/openlowcode/module/system/page/DefaultmenuPage.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public String generateTitle() {
4747
@Override
4848
protected SPageNode getContent() {
4949
SComponentBand pagemainframe = new SComponentBand(SComponentBand.DIRECTION_DOWN, this);
50-
SComponentBand upperband = new SComponentBand(SComponentBand.DIRECTION_RIGHT, this);
50+
5151

5252
SMenuBar menubar = new SMenuBar(this);
5353

@@ -56,8 +56,8 @@ protected SPageNode getContent() {
5656
menubar.addSMenu(modulemenu);
5757
}
5858

59-
upperband.addElement(menubar);
60-
pagemainframe.addElement(upperband);
59+
60+
pagemainframe.addElement(menubar);
6161
Systemattribute serverlabel = ServerSecurityBuffer.getUniqueInstance().getSystemattribute("S0.SERVERLABEL");
6262
if (serverlabel != null)
6363
if (serverlabel.getValue() != null)

0 commit comments

Comments
 (0)