THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.

A new Flyspray task has been opened. Details are below. User who did this - dodo (dodo)
Attached to Project - awesome
Summary - get widgets geometry from layout
Task Type - Feature Request
Category - Wibox
Status - Unconfirmed
Assigned To - Operating System - All
Severity - Medium
Priority - Normal
Reported Version - git/master
Due in Version - Undecided
Due Date - Undecided
Details - i noticed some missing layout features while rewriting awful.menu.

firstly i wanted to set the size of a wibox containing a layout without knowing 
the exact size of the specific layouted content.
the problem: getting a preferred size from the layout regardless in which 
direction the layout is going.
a solution: the method fit in every layout returns the preferred size when 
filled with invalid size (e.g. -1, -1) (for example 
wibox.layout.fixed.vertical:fit(-1, -1) returns the sum of all item.height as 
height and the max item.width as width )

secondly i need the position of widget inside a layout.
the problem: same as above. getting the position and size of a widget inside a 
layout without handling the exact type of layout.
a solution: a new method get_widget_geometry(w, h) for a layouts, which returns 
the position and size of a widget inside a layout as table. width (w) and 
height (h) will be passed to the method fit.

what to you think this idea? if you like it i will implement it and submit a patch.

this is related to 
https://awesome.naquadah.org/bugs/index.php?do=details&task_id=591&project=1

More information can be found at the following URL:
https://awesome.naquadah.org/bugs/index.php?do=details&task_id=873

You are receiving this message because you have requested it from the Flyspray 
bugtracking system.  If you did not expect this message or don't want to 
receive mails in future, you can change your notification settings at the URL 
shown above.

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

Reply via email to