Replies: 3 comments 1 reply
-
|
Beta Was this translation helpful? Give feedback.
-
Many thanks for coming back to me. What I would like to achieve in this little exercise is a bar that is a wide as the monitor and displays the strings "hubba" and "bubba" at the right side. The way I am trying to achieve this is to have a window, inside the window a box that is supposed to to be as wide as the window and inside this box 2 other boxes, containing "hubba" and "bubba" respectively. In order to see how wide the elements are I have configured the outer box to have a green background and the other two boxes are red and yellow. If I run the code I posed above I get almost what I want: There are the strings "hubba" and "bubba" display to the left and a green bar across the monitor, showing that the surrounding box is really as wide as the monitor (or the windows). But what I cannot get to work is to have these strings displayed at the right side. I can add a :halign "end" to the surrounding box and that makes the strings appear on the right side - but now (and this is what I don't understand) there is no green background visible anymore. So it seems the surrounding box (the bar) that earlier was as wide as the monitor has now shrunk to accomodate only the two childs. And as I have discovered later the same thing happens when you use :halign "start". So if you don't use any halign the surrounding box is as wide as the monitor, if you use halign the box shrinks and so I cannot find a way to have a bar that displays entries aligned to the right. I am not sure if this was understandable I can make some scrreenshots tomorrow... |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Hi,
I have tried everything I can think of but I cannot get it to work.
Consider this:
with this styling:
This gives you a bar with two widgets aligned to the left of the bar.
Now I want excatly that but with the widgets to the right.
So I tried:
And this aligns the widgets to rights (yeah!) but now the bar does not span the monitor anymore.
So I tried this:
But that does not change anything...
So how is this done? There is no documentation, no examples no nothing - and I probably won't get an answer here as well...
Beta Was this translation helpful? Give feedback.
All reactions