Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>A quick look... Major issue - over-nesting. Your view is a container (or panel inheriting all container attributes) - layout fit. It has 1 item in it - a container with layout vbox (with 6 items - that continues to nest and nest...).</p> <p>The first container (view), is this to fill a region in another view/panel? ie: why are you using layout:fit?</p> <p>Assumption: This panel seems to be a standalone page, where you want it to be fullscreen and without scrolling / overflow. </p> <p>Remove one of the top containers to have this:</p> <pre><code>Ext.define('MyApp.view.TimerPanel', { extend: 'Ext.Container', alias: 'widget.timer', config: { layout: { type: 'vbox', }, scrollable: false, // shouldn't be needed. fullscreen: true, items: [{ xtype: 'container', docked: 'top', height: 50, layout: { type: 'hbox' }, ... </code></pre> <p>Your container will fill the screen from "fullscreen" and the vbox|flex values you have on child elements will offer the ratios you want.</p> <p>What you were experiencing was the "scrolling causing drag on form/field elements bug" from over-nesting your view, as well as over-configuring settings. Sencha has defaults and fallbacks for most options not set. Some things when set, offer a conflict to something else. Add in touch-events to all the listeners on fields and the code just spits the dummy and starts causing errors.</p> <p>When your page starts doing scroll/drag errors, start by removing all the settings of fullscreen and scrollable (ie: not set to true/false/other - remove them!), then check your layouts - make certain you're using the simplest method to show what you need. Then start adding in fullscreen/scrollable when absolutely necessary.</p> <p>As for scrollable, it seems some further descriptions could be helpful :D An example of a complex setting for scrolling:</p> <pre><code>scrollable: { direction: 'vertical', directionLock: true, translatable: { translationMethod: 'auto' }, momentumEasing: { momentum: { acceleration: 30, friction: 0.5 }, bounce: { acceleration: 20, springTension: 0.5, }, minVelocity: 5 }, outOfBoundRestrictFactor: 0 }, </code></pre> <p>An example of no scrolling:</p> <pre><code> scrollable: false, </code></pre> <p>A simple method for scrollable-y true, scrollable-x false:</p> <pre><code> scrollable: 'vertical', </code></pre> <p>Scrollable accepts both string and object configurations.</p> <p>Hope this all helps. Cheers, G</p> <p>P.S. If it still plays up, I'll try and find the time to give it a once-over to be able to give you working code.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload