0

I am loading jQuery dialogs that contain tabs inside. The tabs vary in height but the position is calculated on the first tab that is loaded. Is it possible to position the dialog according the the biggest tab inside?

Xerri
  • 4,916
  • 6
  • 45
  • 54
  • Try setting the dialog `height` option to the height of the highest tab. You try doing this during the dialog `create` or `open` events. – Nal Sep 11 '12 at 15:13
  • So when the dialog is created or opened, I get the height of the highest tab and then pass it as a parameter right? – Xerri Sep 12 '12 at 07:32
  • Yes, exactly. Although I haven't tried it out myself yet. – Nal Sep 12 '12 at 12:39
  • Did not manage to get it to work. I think the height is not able to be calculated since the big tab would be hidden on dialog open – Xerri Sep 14 '12 at 08:36
  • Just tested and you are correct. Try getting the height using this technique: http://stackoverflow.com/questions/2345784/jquery-get-height-of-hidden-element-in-jquery – Nal Sep 14 '12 at 12:07

0 Answers0