From 2ad216cab4d6d766601d1551190e2d6d8eee8d74 Mon Sep 17 00:00:00 2001 From: David Wendt Date: Sat, 6 Jun 2020 18:06:34 -0400 Subject: [PATCH] Don't continue comparing tab stops after we find one that fits. --- core/src/html/layout.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/core/src/html/layout.rs b/core/src/html/layout.rs index 40dee99e8..2cb83e393 100644 --- a/core/src/html/layout.rs +++ b/core/src/html/layout.rs @@ -239,6 +239,7 @@ impl<'a, 'gc> LayoutContext<'a, 'gc> { let twips_stop = Twips::from_pixels(*stop); if twips_stop > self.cursor.x() { self.cursor.set_x(twips_stop); + break; } } }