Hi,

On 02.02.2013 22:39, Alexander Koch wrote:
[...]
> 1) Creating a textbox widget that doesn't change its width, no matter
> whether the content has two or three characters.
> Speaking a bit complicated, I just want to create a right-aligned
> textbox for holding a percentage value that does not move all the other
> widgets in the container when its value changes.
> This has been possible under 3.4 by setting a fixed width and right
> alignment.

In 3.5.1, you will have wibox.layout.constraint for this:

local textbox = wibox.widget.textbox()
local constr = wibox.layout.constraint(textbox, "exact", 100, nil)

Now add "constr" to your wibox instead of textbox. This will force a width of
exactly 100 pixels.

For 3.5, this can be achieved via some ugly hack:

local textbox = wibox.widget.textbox()
textbox.fit = function(_, w, h)
  return 100, h
end

> 2) I read somewhere in the mailing list archives that it has been
> decided to change the scrolling direction in favor of easier
> implementation, and that it should be possible to bring back the old
> behaviour by applying a special container to the graph widget.
> Any practical advice to this?

local graph = awful.widget.graph()
local mirror = wibox.layout.mirror()
mirror:set_widget(graph)
mirror:set_reflection({ vertical = true })

(Use mirror in your wibox)

Cheers,
Uli
-- 
"For saving the Earth.. and eating cheesecake!"

-- 
To unsubscribe, send mail to [email protected].

Reply via email to