Make Line::paint interface consistent with Line::paint_wrapped

Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
Antonio Scandurra
2021-09-02 14:33:52 +02:00
co-authored by Nathan Sobo
parent bdc35f03f2
commit 6a071e865f
4 changed files with 46 additions and 35 deletions
+1 -5
View File
@@ -132,11 +132,7 @@ impl Element for Label {
line: &mut Self::LayoutState,
cx: &mut PaintContext,
) -> Self::PaintState {
line.paint(
bounds.origin(),
RectF::new(vec2f(0., 0.), bounds.size()),
cx,
)
line.paint(bounds.origin(), visible_bounds, bounds.size().y(), cx)
}
fn dispatch_event(