Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

4.1, cant make my HLayout to obey height 1

$
0
0
Hello,

we're working on updating to 4.1, which is taking us far longer than we've anticipated since 4.1 won't work in IE11 unless you set the "<!DOCTYPE HTML>" tag.

That tag, however, changed *alot* of our layout in our app, which we're working on solving.

One of the problem i can't seem to get my head around is this:

I have a HLayout, called "HRLayout" to display a horizontal bar where appropriate:

Code:

    public HRLayout() {   
            //setStyleName("hrlayout");         
        Img hrl = new Img();
        hrl.setMaxHeight(1);
        hrl.setSrc(NubaCommonConstants.HR_LEFT);
        Img hr = new Img();
        hr.setMaxHeight(1);
        hr.setSrc(NubaCommonConstants.HR);
        hr.setWidth100();
        Img hrr = new Img();
        hrr.setSrc(NubaCommonConstants.HR_RIGHT);
        hrr.setMaxHeight(1);
        addMember(hrl);
        addMember(hr);
        addMember(hrr);
       
        setHeight(1);
    }

This has worked well before, but after the update/adding of DOCTYPE, smartgwt encapsulates this in like 4 layers of DIVs and adds a height of 13 to it that i CANT REMOVE. i've tried setting padding, margin to 0, setting heights and maxheights on everything i can think of
to 1 both in code and css, no dice.

See screenshots of what i get in firebug.


I would be very happy for some pointers, i am out of ideas.

Attached Images
File Type: png Screen Shot 2014-04-21 at 12.18.16.png (1.6 KB)
File Type: jpg div-layers.jpg (48.7 KB)

Viewing all articles
Browse latest Browse all 4756

Trending Articles