Commit 16114d8
committed
Fix label size so that it does not resize based on fontsize
If the fontsize was larger than the widget height then the Label
widget woult increase the height to fit the fontsize. This was
undesired behaviour and also not the behaviour of other widgets
displaying text.
Now we fix the label widget to be the size defined by the user
and the text will be cropped if too large for the widget.1 parent c3c0fa6 commit 16114d8
File tree
1 file changed
+9
-0
lines changed- app/display/representation-javafx/src/main/java/org/csstudio/display/builder/representation/javafx/widgets
1 file changed
+9
-0
lines changedLines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| |||
137 | 138 | | |
138 | 139 | | |
139 | 140 | | |
| 141 | + | |
| 142 | + | |
140 | 143 | | |
141 | 144 | | |
142 | 145 | | |
143 | 146 | | |
144 | 147 | | |
| 148 | + | |
| 149 | + | |
145 | 150 | | |
146 | 151 | | |
147 | 152 | | |
148 | 153 | | |
149 | 154 | | |
150 | 155 | | |
| 156 | + | |
| 157 | + | |
151 | 158 | | |
152 | 159 | | |
153 | 160 | | |
154 | 161 | | |
155 | 162 | | |
156 | 163 | | |
| 164 | + | |
| 165 | + | |
157 | 166 | | |
158 | 167 | | |
159 | 168 | | |
| |||
0 commit comments