From 6cf02b4e612ea7166d1663e93f775edc0ec5b9e1 Mon Sep 17 00:00:00 2001 From: rlx <0x0073@0x2620.org> Date: Fri, 14 Jan 2011 03:53:18 +0000 Subject: [PATCH] fix resizing behavior of lists sections --- build/css/ox.ui.css | 8 +++++++- build/js/ox.ui.js | 4 +++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/build/css/ox.ui.css b/build/css/ox.ui.css index 16734ca7..04fd688e 100644 --- a/build/css/ox.ui.css +++ b/build/css/ox.ui.css @@ -143,7 +143,8 @@ Dialog } .OxDialog > .OxContent { - top: 24px; + position: relative; + top: 0; bottom: 24px; height: 100%; //padding: 16px; @@ -816,6 +817,11 @@ Lists overflow: hidden; white-space: nowrap; } +.OxTextList .OxBar .OxTitle img { + width: 16px; + height: 16px; + margin: -1px 0 0 -4px; +} .OxTextList .OxBar .OxTitle:first-child { padding-left: 4px; } diff --git a/build/js/ox.ui.js b/build/js/ox.ui.js index 1d3b69d7..53e7e902 100644 --- a/build/js/ox.ui.js +++ b/build/js/ox.ui.js @@ -1623,7 +1623,6 @@ requires .html(self.options.title) .appendTo(that.$titlebar); - // fixme: should the following be a container? that.$content = new Ox.Element() .addClass('OxContent') .css({ @@ -7243,6 +7242,9 @@ requires $.each(self.options.columns, function(i, v) { // fixme: can this go into a generic ox.js function? // fixme: and can't these just remain undefined? + if (Ox.isUndefined(v.align)) { + v.align = 'left'; + } if (Ox.isUndefined(v.clickable)) { v.clickable = false; }