PDA

View Full Version : Border in the Ext Core carousel example



mankz
13 May 2009, 2:56 AM
If I want to have a border navigation header on the last example at

http://extjs.com/playpen/ext-core-latest/examples/carousel/

If I use Firebug to add the following to the div with class "ux-carousel-nav"


border: 1px solid #000

I don't get a border on the right, can anyone help me figure out why?

Animal
13 May 2009, 3:26 AM
It needs programatically widthing. The border is hidden off the edge.

In that case, explicitly setting it to width: 418px fixes it.

Animal
13 May 2009, 3:28 AM
Setting it to the width of its parent container minus its own getFrameWidth('lr') should fix it.

mankz
13 May 2009, 3:33 AM
Thank you sir, works! :)