1. #1
    Sencha User
    Join Date
    Mar 2013
    Posts
    31
    Vote Rating
    -7
    bjornravers is infamous around these parts

      0  

    Default Unanswered: Resizing viewport

    Unanswered: Resizing viewport


    Hi, I have a problem, I have this code on my index.html
    Code:
    <div id="knop" class="createsend-button" style="height:27px;display:inline-block;" data-listid="j/3B/E48/AF5/B785FDCA32BC33D1">
    </div><script type="text/javascript">(function () { var e = document.createElement('script'); e.type = 'text/javascript'; e.async = true; e.src = ('https:' == document.location.protocol ? 'https' : 'http') + '://btn.createsend1.com/js/sb.min.js?v=2'; e.className = 'createsend-script'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(e, s); })();</script>
    It makes a button on the bottom of the page, but when I launch my app the viewport is 100% so it comes infront of it. So my question is how can I resize my viewport. or how can I get that button to work on my panel.
    Code I'm using now:
    Code:
    Ext.Viewport.setWidth('100%');
    Ext.Viewport.setHeight('95%');
    But this code resize both the viewport en ext-element3. I need ext-element3 to stay 100% and the viewport(bottom one) to resize to 95%
    What I have:
    senchasize.PNG
    What I want:
    senchasize2.PNG
    Or if someone knows how to add this code to a panel or some other way to add it on the navigationview.
    Thanks

  2. #2
    Sencha User
    Join Date
    Mar 2013
    Posts
    31
    Vote Rating
    -7
    bjornravers is infamous around these parts

      0  

    Default


    Found it did it with:
    Code:
     z-index: 999;

Tags for this Thread