Skip to content

Commit

Permalink
LIMS-380: Fix position of autoPROC images (#831)
Browse files Browse the repository at this point in the history
* LIMS-380: Fix position of autoPROC images

* LIMS-380: Just use iframe size of 98%

* Set width/height to percentage value (#838)

---------

Co-authored-by: Mark Williams <[email protected]>
Co-authored-by: Guilherme Francisco <[email protected]>
  • Loading branch information
3 people authored Oct 1, 2024
1 parent 5552ece commit c6f264d
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions client/src/js/views/log.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ define(['marionette', 'views/dialog', 'utils'], function(Marionette, DialogView,
initialize: function(options) {
this.url = options.url
this.load()
this.iframe = $(
`<iframe style="position: absolute;" onload="this.style.height=(this.contentWindow.document.body.scrollHeight)+'px';this.style.width=(this.contentWindow.document.body.scrollWidth)+'px';"></iframe>`)
this.iframe = $(`<iframe style="position: absolute;"></iframe>`)
},

// Override existing dialogOptions of Dialog View
Expand Down Expand Up @@ -117,11 +116,10 @@ define(['marionette', 'views/dialog', 'utils'], function(Marionette, DialogView,
onRender: function() {
this.$el.append(this.iframe)

this.$el.find('iframe').css('width', $(window).width()*(app.mobile() ? 0.8 : 0.5))
this.$el.find('iframe').css('height', $(window).height()*(app.mobile() ? 0.8 : 0.5))

this.$el.find('iframe').css('width', "99%")
this.$el.find('iframe').css('height', "98%")
}

})

})
})

0 comments on commit c6f264d

Please sign in to comment.