summaryrefslogtreecommitdiffstats
path: root/web/src/widget/row.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón <hector0193@gmail.com>2019-12-18 23:20:19 +0100
committerLibravatar GitHub <noreply@github.com>2019-12-18 23:20:19 +0100
commit6f9de4130f6b3fe4ed0d4aa14b2cbc8d0d8e10e3 (patch)
treead267b855f2c5e3d9d2aced5ebb672c72ef52b2a /web/src/widget/row.rs
parent0f2e20f5e5b1f0658ab4e6cbe6fdda9ca97f2b36 (diff)
parent95988e8e251d5e416698d3883f85a469daed6365 (diff)
downloadiced-6f9de4130f6b3fe4ed0d4aa14b2cbc8d0d8e10e3.tar.gz
iced-6f9de4130f6b3fe4ed0d4aa14b2cbc8d0d8e10e3.tar.bz2
iced-6f9de4130f6b3fe4ed0d4aa14b2cbc8d0d8e10e3.zip
Merge pull request #127 from Gohla/web_styling
Add several missing style attributes in iced_web
Diffstat (limited to 'web/src/widget/row.rs')
-rw-r--r--web/src/widget/row.rs8
1 files changed, 6 insertions, 2 deletions
diff --git a/web/src/widget/row.rs b/web/src/widget/row.rs
index e47478be..02754e2e 100644
--- a/web/src/widget/row.rs
+++ b/web/src/widget/row.rs
@@ -134,6 +134,8 @@ impl<'a, Message> Widget<Message> for Row<'a, Message> {
let width = style::length(self.width);
let height = style::length(self.height);
+ let justify_content = style::align(self.align_items);
+
// TODO: Complete styling
div(bump)
.attr(
@@ -143,10 +145,12 @@ impl<'a, Message> Widget<Message> for Row<'a, Message> {
)
.attr("style", bumpalo::format!(
in bump,
- "width: {}; height: {}; max-width: {}px",
+ "width: {}; height: {}; max-width: {}px; max-height: {}px; justify-content: {}",
width,
height,
- self.max_width
+ self.max_width,
+ self.max_height,
+ justify_content
).into_bump_str()
)
.children(children)