Skip to content

Commit

Permalink
Merge pull request #350 from Edirom/feature/renderingView-sass
Browse files Browse the repository at this point in the history
improve: renderingView fitting to window
  • Loading branch information
riedde authored Feb 6, 2024
2 parents 600f11b + a0c617b commit 706d3ab
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 16 deletions.
26 changes: 13 additions & 13 deletions app/view/window/image/VerovioImage.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,36 +18,36 @@
*/
Ext.define('EdiromOnline.view.window.image.VerovioImage', {
extend: 'Ext.panel.Panel',

layout: 'fit',

initComponent: function () {

var me = this;
me.html = '<div id="' + me.id + '_rendCont" style="height:100%;"><iframe id="' + me.id +
'_rendContIFrame" style="width:100%; height:100%; border:none; background-color:white;"></iframe></div>';

me.html = '<div id="' + me.id + '_rendCont" class="renderingViewContent"><iframe id="' + me.id +
'_rendContIFrame"></iframe></div>';

me.callParent();
},

setIFrameURL: function (url) {
var me = this;
var contEl = me.el.getById(me.id + '_rendContIFrame');
contEl.set({
'src': url
});

},

showMovement: function (movementId) {
var me = this;

var iframe = Ext.fly(me.id + '_rendContIFrame').dom.contentWindow;
iframe.showMovement(movementId);
},
/*

/*
* Call showMeasure of corresponding iframe.
* @param {string} movementId - The XML-ID of the selected movement.
* @param {string} measureId - The XML-ID of the selected measure.
Expand Down
9 changes: 6 additions & 3 deletions packages/eoTheme/sass/etc/all.scss
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
@import 'webfonts.scss';
@import 'webfonts.scss';
@import 'mixins.scss';

/*Edirom*/
@import 'facsimile.scss';
@import 'xml.scss';
@import 'toolbar.scss';

//@import 'textViewContent.scss';
@import 'textView.scss';
@import 'headerView.scss';
Expand All @@ -16,4 +16,7 @@
@import 'freidi.scss';

/*Annotations*/
@import 'annotation.scss';
@import 'annotation.scss';

/*renderingView (Verovio)*/
@import 'renderingViewContent.scss'
7 changes: 7 additions & 0 deletions packages/eoTheme/sass/etc/renderingViewContent.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/* make verovio iFrame fit Edirom window */
.renderingViewContent, .renderingViewContent iframe {
width: 100%;
height: 100%;
border: none;
overflow: hidden;
}

0 comments on commit 706d3ab

Please sign in to comment.