Skip to content

Commit

Permalink
Hardcoded some stage style attributes (to replace soon with CSS)
Browse files Browse the repository at this point in the history
  • Loading branch information
salmonb committed Jun 3, 2024
1 parent 956fffd commit 2af8758
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ public final class GwtJ2clPrimaryStagePeer extends StagePeerBase {

public GwtJ2clPrimaryStagePeer(Stage stage) {
super(stage);
// TODO: see how to replace this with immediate CSS
// Disabling browser horizontal and vertical scroll bars
HtmlUtil.setStyleAttribute(document.documentElement, "overflow", "hidden");
// Removing the default margin around the body, so it fills the whole browser tab
HtmlUtil.setStyleAttribute(document.body, "margin", "0");

// Considering the current window size
changedWindowSize();
// And subsequent changes in the future
Expand Down

0 comments on commit 2af8758

Please sign in to comment.