CopyPastor

Detecting plagiarism made easy.

Score: 0.8569375265298134; Reported for: String similarity Open both answers

Possible Plagiarism

Plagiarized on 2013-06-25
by Hariharan

Original Post

Original - Posted on 2013-03-15
by Mchl



            
Present in both answers; Present only in the new answer; Present only in the old answer;

You need to use other container than a `Ext.container.Viewport`. By definfiton `Ext.container.Viewport` will always take the entire browser window.
From documentation:
The Viewport renders itself to the document body, and automatically sizes itself to the size of the browser viewport and manages window resizing. There may only be one Viewport created in a page.
Just use `Ext.panel.Panel` instead
Refer below sample.
Ext.application({ name: 'HelloExt', launch: function() { Ext.create('Ext.panel.Panel', { layout: 'fit', renderTo: Ext.get('content') items: [ { title: 'Hello Ext', html : 'Hello! Welcome to Ext JS.' } ] }); } });
also refer below link
http://www.sencha.com/forum/showthread.php?141964-Render-an-ExtJs-4-application-in-a-div http://css.dzone.com/articles/height-problem-when-rendering
You need to use other container than a `Ext.container.Viewport`. By definfiton `Ext.container.Viewport` will always take the entire browser window.
From documentation:
> The Viewport renders itself to the document body, and automatically sizes itself to the size of the browser viewport and manages window resizing. There may only be one Viewport created in a page.
Just use `Ext.panel.Panel` instead
Ext.application({ name: 'HelloExt', launch: function() { Ext.create('Ext.panel.Panel', { layout: 'fit', renderTo: Ext.get('content') items: [ { title: 'Hello Ext', html : 'Hello! Welcome to Ext JS.' } ] }); } });

        
Present in both answers; Present only in the new answer; Present only in the old answer;