Ver código fonte

LibWeb: Set the definite width flag in set_max_content_width

It was setting the definite flag for height.
Andi Gallo 2 anos atrás
pai
commit
b7d23162cc
1 arquivos alterados com 1 adições e 1 exclusões
  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;
 }
 
 }