summaryrefslogtreecommitdiff |
diff options
author | nsensfel <SpamShield0@noot-noot.org> | 2018-03-26 12:54:05 +0200 |
---|---|---|
committer | nsensfel <SpamShield0@noot-noot.org> | 2018-03-26 12:54:05 +0200 |
commit | ef3cad7b7a84331f8b3cd6804d977e8d1e8f44cb (patch) | |
tree | 2042dec215065293be2811a4b4e1fb67c73dcc69 | |
parent | a88765c209c60e039c95507c2c9db73273b93fde (diff) |
Odd display behaviors point to bad CSS rules.
-rw-r--r-- | src/battlemap/src/View/Battlemap.elm | 27 | ||||
-rw-r--r-- | src/battlemap/www/style.css | 2 |
2 files changed, 18 insertions, 11 deletions
diff --git a/src/battlemap/src/View/Battlemap.elm b/src/battlemap/src/View/Battlemap.elm index d9a98d1..b805e6b 100644 --- a/src/battlemap/src/View/Battlemap.elm +++ b/src/battlemap/src/View/Battlemap.elm @@ -83,17 +83,22 @@ get_html model = [ (Html.Attributes.class "battlemap-actual"), (Html.Attributes.style - [ - ( - "transform", - ( - "scale(" - ++ - (toString (Struct.UI.get_zoom_level model.ui)) - ++ ")" - ) - ) - ] + ( + if ((Struct.UI.get_zoom_level model.ui) == 1) + then [] + else + [ + ( + "transform", + ( + "scale(" + ++ + (toString (Struct.UI.get_zoom_level model.ui)) + ++ ")" + ) + ) + ] + ) ) ] ( diff --git a/src/battlemap/www/style.css b/src/battlemap/www/style.css index 08f1e22..b4e744a 100644 --- a/src/battlemap/www/style.css +++ b/src/battlemap/www/style.css @@ -25,6 +25,8 @@ overflow: auto; width: inherit; + /*** Otherwise, it won't display correctly without 'transform: scale' ***/ + position: relative; } .battlemap-footer |