I added a viewport with properties that allow me to scale / scale. And I added them to my own code:
WebSettings settings = super.appView.getSettings(); settings.setBuiltInZoomControls(true); settings.setDisplayZoomControls(true); settings.setSupportZoom(true);
I can scale, but along with my view, ion-header-bar and ion-nav-bar increase. I tried to give the css header so that it would fix:
position: fixed; top: 0px; left: 0px;
but still it will be increased.
My index.html has an ion-header-bar that contains an image. Patterns are included
<ion-nav-view class="has-header"></ion-nav-view>
The template in which I need to scale in a specific div has an โionic lookโ and it looks like this:
<ion-view> <ion-nav-bar class="bar-stable"> <ion-nav-buttons side="right"> icon1 </ion-nav-buttons> <ion-nav-buttons side="left"> icon2 </ion-nav-buttons> </ion-nav-bar> <div> Multiple divs in here, which are containers for html and css data we receive via AJAX requests. And this is here I need zooming in. </div> </ion-view>
PS: Would it be important if I added the full HTML code (with meta ion-view space, without title, but with body and div) inside ion-view ?
html css cordova ionic-framework
Keval
source share