Support fixed position children

When doing layout, check for whether x/y have been explicitly
specified, and if so honor those positions.

https://bugzilla.gnome.org/show_bug.cgi?id=598462
This commit is contained in:
Colin Walters
2009-10-15 14:45:54 -04:00
parent 497c74f4d8
commit 7c954898a2
2 changed files with 46 additions and 14 deletions

View File

@ -44,6 +44,12 @@ colored_boxes.add(new St.Label({ text: "Default",
style: 'border: 1px solid #aaaaaa; '
+ 'background: #cceeff' }));
b2.add(new St.Label({ x: 50,
y: 50,
text: "Fixed",
style: 'border: 1px solid #aaaaaa;'
+ 'background: #ffffcc' }));
////////////////////////////////////////////////////////////////////////////////
function createCollapsableBox(width) {