Pārlūkot izejas kodu

LibWeb: Set the definite width flag in set_max_content_width

It was setting the definite flag for height.
Andi Gallo 2 gadi atpakaļ
vecāks
revīzija
b7d23162cc
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      Userland/Libraries/LibWeb/Layout/LayoutState.cpp

+ 1 - 1
Userland/Libraries/LibWeb/Layout/LayoutState.cpp

@@ -401,7 +401,7 @@ void LayoutState::UsedValues::set_max_content_width()
 {
 {
     width_constraint = SizeConstraint::MaxContent;
     width_constraint = SizeConstraint::MaxContent;
     m_content_width = INFINITY;
     m_content_width = INFINITY;
-    m_has_definite_height = false;
+    m_has_definite_width = false;
 }
 }
 
 
 }
 }