PDA

View Full Version : position layer with panel and combobox



karstenvennemann
2 Sep 2011, 11:34 PM
Hi All,

I am trying to position a combo box element on top of a page and to absolutely position it on top of the entire page at the upper right had corner of the browser.

I have created a layer, panel and combo box element but I could not figure out what I can set to position it at top : 100px, and 100px form the right hand browser border ? What do I need to add & change to make it work ?


var LayerPanel = new Ext.Panel({ cls: "x-hidden",
renderTo: Ext.getBody(),
border: false,
items: [comboCounties] // this is a combobox define elsewhere
});

var base_map_selector = new Ext.Layer({
id: 'base_map_selector',
items: [LayerPanel]
});

base_map_selector.show(true);