Explorar o código

LibWeb: Set the definite width flag in set_max_content_width

It was setting the definite flag for height.
Andi Gallo %!s(int64=2) %!d(string=hai) anos
pai
achega
b7d23162cc
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;
     m_content_width = INFINITY;
-    m_has_definite_height = false;
+    m_has_definite_width = false;
 }
 
 }