We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9727a6e commit c5db387Copy full SHA for c5db387
lib/src/constraint_layout.dart
@@ -1471,11 +1471,11 @@ class _ConstraintRenderBox extends RenderBox
1471
1472
double consMaxWidth = constraints.maxWidth;
1473
if (consMaxWidth == double.infinity) {
1474
- consMaxWidth = window.physicalSize.width;
+ consMaxWidth = window.physicalSize.width / window.devicePixelRatio;
1475
}
1476
double consMaxHeight = constraints.maxHeight;
1477
if (consMaxHeight == double.infinity) {
1478
- consMaxHeight = window.physicalSize.height;
+ consMaxHeight = window.physicalSize.height / window.devicePixelRatio;
1479
1480
size = constraints.constrain(Size(consMaxWidth, consMaxHeight));
1481
0 commit comments