Skip to content

Commit e9a0322

Browse files
committed
Give labels size during update
1 parent 677aba4 commit e9a0322

File tree

2 files changed

+0
-7
lines changed

2 files changed

+0
-7
lines changed

applications/windowserver/src/components/label.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,6 @@ void label_t::update()
6565

6666
graphics.releaseContext();
6767

68-
markFor(COMPONENT_REQUIREMENT_LAYOUT);
69-
}
70-
71-
void label_t::layout()
72-
{
7368
g_dimension newPreferred(textExtents.width + 3, fontExtents.height + 3);
7469

7570
// Set new preferred size
@@ -82,7 +77,6 @@ void label_t::layout()
8277
markFor(COMPONENT_REQUIREMENT_PAINT);
8378
}
8479

85-
8680
void label_t::paint()
8781
{
8882
clearSurface();

applications/windowserver/src/components/label.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ class label_t : virtual public component_t, virtual public titled_component_t
4444
~label_t() override = default;
4545

4646
void paint() override;
47-
void layout() override;
4847
void update() override;
4948

5049
virtual void setFont(g_font* font);

0 commit comments

Comments
 (0)