View Full Version : Ext4 Viewport behaviour on existing body (diffrent form Ext3).

14 Oct 2011, 4:37 AM

I need to keep existing html inside body unchanged while creating viewport (ie. for browser password handling).

That was normal case in ext3. Now ext4 came and ruined my solution. Why so?

What can i do to have some html present (its invisible) no matter how many times viewport is created and destroyed?

Or maybe someone can just give other example of browser password save on ajax form?

14 Oct 2011, 7:22 AM
I do this all the time, creating or destroying a viewport shouldn't destroy existing HTML in the body.

Could you post a short code sample to demonstrate your problem?

16 Oct 2011, 10:50 PM
Mystery solved.

new Ext.Viewport({ html:"<b>I destroy body</b>",



Ext.getBody().insertHtml('afterBegin',"<b>I don't do any harm.</b>");