Uploaded image for project: 'ZK'
  1. ZK
  2. ZK-3248

PortalChildren doesn't resize when its children cause a scrollbar, covers the children panel

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 8.0.3
    • 8.0.2
    • None
    • Security Level: Jimmy
    • None
    • ZK 8.0.3 S4
    • None

      Reproduced with the following

      <zk>
      
      <script><![CDATA[
      //Workaround, comment out for testing
      zk.afterLoad('zul.wnd', function() {
          var _xPanel = {};
          zk.override(zul.wnd.Panel.prototype, _xPanel, {
          	afterAnima_: function(e) {
      			_xPanel.afterAnima_.apply(this,arguments);
      			this.parent.fixFlex_();
      			console.log('did a thing');
      		}
          });
      });
      ]]></script>
      
      <borderlayout height="100%" width="100%">
      	<north>
      		<div height="50px">
      			<label value="This is a header"/>
      		</div>
      	</north>
      	<center autoscroll="true">
      		<div>
      			<groupbox width="100%" closable="true">
      				<caption label="Close!"></caption>
      				<label value="Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum"/>
      			</groupbox>
      			<label value="Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum"/>
      			<portallayout maximizedMode="whole">
      				<portalchildren id="pc" hflex="1">
      				
      					<panel closable="true" collapsible="true" 
      						open="false" border="normal" title="Panel1">
      						<panelchildren>
      							<div height="3000px">
      								<label value="This is panel 1"/>
      							</div>
      						</panelchildren>
      					</panel>
      				
      			
      					<panel closable="true" collapsible="true" open="false" border="normal" title="Panel2">
      						<panelchildren>
      							<label value="This is panel 2"/>
      						</panelchildren>
      					</panel>
      			
      				
      				</portalchildren>
      			
      			</portallayout>
      		</div>
      	</center>
      </borderlayout>
      </zk>
      

            christopherszu christopherszu
            MDuchemin MDuchemin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour, 30 minutes
                1h 30m