Skip to content

Commit

Permalink
Use inset: 0px style for main SVG element
Browse files Browse the repository at this point in the history
  • Loading branch information
linev committed Sep 27, 2023
1 parent e212b22 commit 50a63d9
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions modules/gpad/TPadPainter.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -571,10 +571,8 @@ class TPadPainter extends ObjectPainter {

if (this._fixed_size)
svg.attr('width', rect.width).attr('height', rect.height);
else {
svg.style('width', '100%').style('height', '100%')
.style('left', 0).style('top', 0).style('right', 0).style('bottom', 0);
}
else
svg.style('width', '100%').style('height', '100%').style('inset', '0px');

svg.style('filter', settings.DarkMode || this.pad?.$dark ? 'invert(100%)' : null);

Expand Down

0 comments on commit 50a63d9

Please sign in to comment.