Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/haxeui/haxeui-core
Browse files Browse the repository at this point in the history
  • Loading branch information
ianharrigan committed May 4, 2024
2 parents 69360ae + 61562c9 commit dcbff1a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions haxe/ui/styles/elements/MediaQuery.hx
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,16 @@ class MediaQuery {
for (d in _directives) {
switch (d.directive) {
case "min-width":
b = b && (Screen.instance.width > ValueTools.calcDimension(d.value));
b = b && (Screen.instance.width >= ValueTools.calcDimension(d.value));
case "max-width":
b = b && (Screen.instance.width < ValueTools.calcDimension(d.value));
case "min-height":
b = b && (Screen.instance.height > ValueTools.calcDimension(d.value));
b = b && (Screen.instance.height >= ValueTools.calcDimension(d.value));
case "max-height":
b = b && (Screen.instance.height < ValueTools.calcDimension(d.value));
case "min-aspect-ratio":
var sr = Screen.instance.width / Screen.instance.height;
b = b && (sr > buildRatio(ValueTools.string(d.value)));
b = b && (sr >= buildRatio(ValueTools.string(d.value)));
case "max-aspect-ratio":
var sr = Screen.instance.width / Screen.instance.height;
b = b && (sr < buildRatio(ValueTools.string(d.value)));
Expand Down

0 comments on commit dcbff1a

Please sign in to comment.