Search code examples
extjsextjs4extjs4.1extjs4.2

extJS: How to center vertically inside a card layout (fiddle inside)


I have a card layout setup and the second item in the card I have tried wrapping inside a panel and setting it to a vbox and align center so that it is centered in the middle of the screen.Its not working.

Anyone have any ideas ?

I have managed to configure a fiddle

https://fiddle.sencha.com/#fiddle/12c9

If i remove the layout, then it reappears but of course its not centered in the screen.


Solution

  • Try setting the width of the panel.

    Example: https://fiddle.sencha.com/#fiddle/12ca