Note that there are some explanatory texts on larger screens.

plurals
  1. POSrcollableview in swapview in dojox mobile
    primarykey
    data
    text
    <p>I have noticed strange thing - when I put ScrollableView into SwapView and I programmatically (after clicking on button) change view in SwamView and next give focus (click one elment in list) to list in ScrollableView, the first view appear under this one with list in ScrollableView which is currently main view (both are visible at the same time - one superimposed on the other). I use it in PhoneGap as a Android project. And the version of Dojo which I use is 1.9.</p> <p>My code is:</p> <pre><code>&lt;div id="view1" data-dojo-type="dojox/mobile/SwapView"&gt; &lt;div data-dojo-type="dojox.mobile.ContentPane" data-dojo-props='href:"page1.html", parseOnLoad: false, onLoad:NewClientForm.loadForm'&gt;&lt;/div&gt; &lt;/div&gt; &lt;div id="view2" data-dojo-type="dojox/mobile/SwapView"&gt; &lt;div data-dojo-type="dojox.mobile.ContentPane" id="cview2" data-dojo-props='href:"page2.html", parseOnLoad: true'&gt;&lt;/div&gt; &lt;/div&gt; </code></pre> <p>and the page2.html</p> <pre><code>&lt;div id="offer_page"&gt; &lt;div class="pageLogo"&gt; &lt;img src="theme/images/logo.png" alt="" /&gt; &lt;/div&gt; &lt;header&gt; &lt;h1 id="offer_page_client_name_header"&gt; &lt;/h1&gt; &lt;/header&gt; &lt;div id="new_client_nav_menu" class="pageNavMenu"&gt; &lt;div&gt;menu&lt;/div&gt; &lt;/div&gt; &lt;div id="new_client_nav_settings" class="pageNavSettings"&gt; &lt;div&gt;set&lt;/div&gt; &lt;/div&gt; &lt;div class="pageNavPrev"&gt; &lt;div id="offer_page_nav_prev" class="pageImageLink" data-dojo-type="dojox/mobile/Button" data-dojo-props='onClick: OfferPageForm.prevButton'&gt;&lt;img src="theme/images/nav_prev.png" alt="" /&gt;&lt;/div&gt; &lt;/div&gt; &lt;div class="pageNavNext"&gt; &lt;div id="offer_page_nav_next" class="pageImageLink" data-dojo-type="dojox/mobile/Button" data-dojo-props="onClick: OfferPageForm.nextButton"&gt;&lt;img src="theme/images/nav_next.png" alt=""&gt;&lt;/div&gt; &lt;/div&gt; &lt;ul data-dojo-type="dojox/mobile/TabBar" data-dojo-props='barType:"standardTab", center:false'&gt; &lt;li data-dojo-type="dojox/mobile/TabBarButton" data-dojo-props='selected:true, moveTo:"tab1"'&gt;Client data&lt;/li&gt; &lt;li data-dojo-type="dojox/mobile/TabBarButton" data-dojo-props='moveTo:"tab2"'&gt;Needs analysis&lt;/li&gt; &lt;li data-dojo-type="dojox/mobile/TabBarButton" data-dojo-props='moveTo:"tab3"'&gt;Offers&lt;/li&gt; &lt;li data-dojo-type="dojox/mobile/TabBarButton" data-dojo-props='moveTo:"tab4"'&gt;Simulations&lt;/li&gt; &lt;/ul&gt; &lt;div id="tab1" data-dojo-type="dojox.mobile.View" class="tabView"&gt; Client data: &lt;/div&gt; &lt;div id="tab2" data-dojo-type="dojox.mobile.View" class="tabView"&gt; Needs analysis &lt;/div&gt; &lt;div id="tab3" data-dojo-type="dojox.mobile.View" class="tabView"&gt; &lt;div class="offersLeftPanel"&gt; &lt;div class="offersLeftPanelTableHeader"&gt; &lt;div class="offersLeftPanelTableDate"&gt;Creation date&lt;/div&gt; &lt;div class="offersLeftPanelTableProduct"&gt;Product&lt;/div&gt; &lt;div class="offersLeftPanelTableName"&gt;Name&lt;/div&gt; &lt;div class="offersLeftPanelTableRisk"&gt;Risk Profile&lt;/div&gt; &lt;div class="offersLeftPanelTableStatus"&gt;Status&lt;/div&gt; &lt;div class="offersLeftPanelTableSigned"&gt;Signed&lt;/div&gt; &lt;div class="offersLeftPanelTableActions"&gt;Actions&lt;/div&gt; &lt;/div&gt; &lt;div data-dojo-type="dojox.mobile.ScrollableView" data-dojo-props="height: '88%'"&gt; &lt;ul data-dojo-type="dojox/mobile/EdgeToEdgeList"&gt; &lt;li data-dojo-type="dojox.mobile.ListItem" class="offersLeftPanelTableRow"&gt; &lt;div class="offersLeftPanelTableDate"&gt;2013-03-25 08:00&lt;/div&gt; &lt;div class="offersLeftPanelTableProduct"&gt;iSave Target&lt;/div&gt; &lt;div class="offersLeftPanelTableName"&gt;iSavetarget-Medium-1&lt;/div&gt; &lt;div class="offersLeftPanelTableRisk"&gt;Neutral&lt;/div&gt; &lt;div class="offersLeftPanelTableStatus"&gt;New&lt;/div&gt; &lt;div class="offersLeftPanelTableSigned"&gt;No&lt;/div&gt; &lt;div class="offersLeftPanelTableActions"&gt;&lt;/div&gt; &lt;/li&gt; &lt;li data-dojo-type="dojox.mobile.ListItem" class="offersLeftPanelTableRow"&gt; &lt;div class="offersLeftPanelTableDate"&gt;2013-03-25 08:00&lt;/div&gt; &lt;div class="offersLeftPanelTableProduct"&gt;iSave Target&lt;/div&gt; &lt;div class="offersLeftPanelTableName"&gt;iSavetarget-Medium-1&lt;/div&gt; &lt;div class="offersLeftPanelTableRisk"&gt;Neutral&lt;/div&gt; &lt;div class="offersLeftPanelTableStatus"&gt;New&lt;/div&gt; &lt;div class="offersLeftPanelTableSigned"&gt;No&lt;/div&gt; &lt;div class="offersLeftPanelTableActions"&gt;&lt;/div&gt; &lt;/li&gt; ... &lt;/ul&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class="offersRightPanel"&gt; &lt;div data-dojo-type="dojox/mobile/Button" class="offersOtherNeedsButton"&gt;Other uncovered needs&lt;/div&gt; &lt;div class="offersBottomButtons"&gt; &lt;div data-dojo-type="dojox/mobile/Button" class="offersConsolidateButton"&gt;Consolidate offers and issue&lt;/div&gt; &lt;div data-dojo-type="dojox/mobile/Button" class="offersIssueButton"&gt;Issue proposal&lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;div id="tab4" data-dojo-type="dojox.mobile.View" class="tabView"&gt; Simulations &lt;/div&gt; </code></pre> <p></p> <p>page1.html looks very similar, but ther are no lists and ScrollableViews.</p> <p>The most <em>interesting</em> thing is the fact that it occurs not every time and not on every devices on which I have a chance to test it (I tested it on Samsung Galaxy Tab 2? - here I have noticed this issue, Asus Transformer and one "no name").</p> <p>Thanks in advance for any help.</p>
    singulars
    1. This table or related slice is empty.
    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.
 

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