MOBILE-2464 imageviewer: Enable scroll to image viewer

main
Pau Ferrer Ocaña 2018-07-05 12:24:04 +02:00
parent 440c5c3a02
commit 5ef2028acf
3 changed files with 22 additions and 2 deletions

View File

@ -27,6 +27,17 @@ core-course-format {
width: 100%;
}
}
.item-divider {
.label {
margin-top: 0;
margin-bottom: 0;
}
core-format-text {
line-height: 44px;
}
}
}
.core-section-select {

View File

@ -9,6 +9,8 @@
</ion-buttons>
</ion-navbar>
</ion-header>
<ion-content padding>
<img [src]="image" alt="{{ title }}" core-external-content [component]="component" [componentId]="componentId">
<ion-content>
<ion-scroll zoom="true" maxZoom="2" class="core-zoom-pane" scrollX="true" scrollY="true">
<img [src]="image" [alt]="title" core-external-content [component]="component" [componentId]="componentId">
</ion-scroll>
</ion-content>

View File

@ -0,0 +1,7 @@
.core-zoom-pane {
height: 100%;
img {
max-width: none;
}
}