File tree Expand file tree Collapse file tree 6 files changed +29
-21
lines changed Expand file tree Collapse file tree 6 files changed +29
-21
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 99 < ion-refresher pulling-text ="{{ 'mm.core.pulltorefresh' | translate }} " on-refresh ="doRefresh() " ng-if ="loaded "> </ ion-refresher >
1010 < mm-loading hide-until ="loaded ">
1111 < mm-navigation-bar previous ="previousItem " next ="nextItem " action ="loadItem " info ="description " title ="{{ 'mm.core.description' | translate }} "> </ mm-navigation-bar >
12- < mm-iframe src ="src " class =" mma-imscp-iframe-container " > </ mm-iframe >
12+ < mm-iframe src ="src " ng- class =' {"mm-has-navigation-bar": previousItem || nextItem || description} ' > </ mm-iframe >
1313 </ mm-loading >
1414 </ ion-content >
1515</ ion-view >
Original file line number Diff line number Diff line change @@ -36,7 +36,6 @@ angular.module('mm.addons.mod_scorm')
3636 offline = false ;
3737
3838 $scope . title = scorm . name ; // We use SCORM name at start, later we'll use the SCO title.
39- $scope . description = scorm . intro ;
4039 $scope . scorm = scorm ;
4140 $scope . loadingToc = true ;
4241
Original file line number Diff line number Diff line change @@ -16,13 +16,6 @@ $mma-mod-scorm-warning-color: #c00 !default;
1616 color : $mma-mod-scorm-warning-color ;
1717}
1818
19- .mma-mod-scorm-iframe-container {
20- top : 0 ;
21- right : 0 ;
22- left : 0 ;
23- bottom : 0 ;
24- }
25-
2619ion-popover-view {
2720 /* Adapt popover to content's height. The popover's ion-content needs to disable Ionic scroll. */
2821 & .mma-scorm-popover {
Original file line number Diff line number Diff line change 11< ion-view >
22 < ion-nav-title > < mm-format-text watch ="true "> {{ title }}</ mm-format-text > </ ion-nav-title >
33 < ion-nav-buttons side ="secondary ">
4- < a ng-href ="{{externalUrl}} " class ="button button-icon ion-ios-browsers-outline " mm-browser > </ a >
54 < button class ="button button-icon ion-more " ng-if ="showToc && !loadingToc && toc && toc.length " ng-click ="popover.show($event) ">
65 </ button >
76 < ion-spinner ng-if ="showToc && loadingToc "> </ ion-spinner >
87 </ ion-nav-buttons >
98 < ion-content >
109 < mm-loading hide-until ="loaded ">
11- < mm-navigation-bar previous ="previousSco " next ="nextSco " action ="loadSco " info =" description " title =" {{ 'mm.core.description' | translate }} " > </ mm-navigation-bar >
12- < mm-iframe ng-if ="src " src ="src " class =" mma-mod-scorm- iframe-container " iframe- width ="{{scorm.popup ? scorm.width : undefined}} " iframe-height ="{{scorm.popup ? scorm.height : undefined}} "> </ mm-iframe >
10+ < mm-navigation-bar previous ="previousSco " next ="nextSco " action ="loadSco "> </ mm-navigation-bar >
11+ < mm-iframe ng-if ="src " src ="src " iframe-width ="{{scorm.popup ? scorm.width : undefined}} " iframe-height ="{{scorm.popup ? scorm.height : undefined}} " ng-class =' {"mm-has-navigation-bar": previousSco || nextSco} ' > </ mm-iframe >
1312 < p ng-if ="!src && errorMessage "> {{ errorMessage | translate }}</ p >
1413 </ mm-loading >
1514 </ ion-content >
Original file line number Diff line number Diff line change @@ -274,17 +274,41 @@ img.mm-media-adapt-width {
274274 line-height : 30px ;
275275}
276276
277+ // Remove padding-top and bottom from navigation bar to minimize height used.
278+ mm-navigation-bar {
279+ .row {
280+ padding-top : 0px ;
281+ padding-bottom : 0px ;
282+ }
283+ .col {
284+ padding-top : 0px ;
285+ padding-bottom : 0px ;
286+ }
287+ }
288+
277289// Extra attributes to ionic classes to force frames via directive 100% height.
278290
279291.scroll {
280292 height : 100% ;
281293}
282294
283295.iframe-wrapper {
284- height : 100% ;
285- width : 100% ;
296+ top : 0 ;
297+ bottom : 0 ;
298+ right : 0 ;
299+ left : 0 ;
300+ height : auto ;
301+ width : auto ;
302+ position : absolute !important ; // Position fixed causes problems in Android 4.1-4.3.
286303}
287304
305+ .mm-has-navigation-bar {
306+ .iframe-wrapper {
307+ top : $button-height + 5px ;
308+ }
309+ }
310+
311+
288312/* *
289313 * This CSS uses adjacent selectors instead of general sibling (~) selectors
290314 * for ion radio that are broken in iOS 9 UIWebView.
You can’t perform that action at this time.
0 commit comments