Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#4914 closed defect (fixed)

Grid, programatic height/width problems...

Reported by: tk Owned by: sorvell
Priority: high Milestone:
Component: DojoX Grid Version: 0.9
Keywords: Cc: tk
Blocked By: Blocking:

Description

I'm creating a Grid as a direct child of a tabContainer programatically... I was originally just calling new dojox.Grid({...basic args for view/structure/data...}, document.createElement('div');

That wasnt setting my height/width right so I then tried creating the div and adding 100% height/width styling to it... and that didnt increase my grid size..

Basically I'm trying to get the grid to fill the entire tabContainer tab content area... currently my bottom row is cut in half, and if I inspect it with Firebug I find that no matter what, this.contentNode is getting a height specified in pixels set on it every time, and this overrides all my attempts at forcing it bigger with CSS.

Change History (3)

comment:1 Changed 12 years ago by sjmiles

If possible, please attach an test case (one good way is to take an existing test file and add the problem features).

comment:2 Changed 12 years ago by alex

Resolution: fixed
Status: newclosed

(In [11372]) test of a grid sizing to a tab. Fixes #4914

comment:3 Changed 12 years ago by tk

Just an update to this... It was a problem with my methods, I ended up having to connect to the tabContainers addChild, and call render from there, otherwise my grids wouldn't consistently render.

I initially did a setTimeout() but depending on processing time, that wasn't always sufficient.

Note: See TracTickets for help on using tickets.