Unified · Split
| @@ -133,17 +133,17 @@ impl<S: 'static + Send + Sync + Clone> Label<S> { · 132 unmodified lines | ||
| 133 | 133 | |
| 134 | 134 | div() |
| 135 | 135 | .flex() |
| 136 | − // .when(self.strikethrough, |this| { | |
| 137 | − // this.relative().child( | |
| 138 | − // div() | |
| 139 | − // .absolute() | |
| 140 | − // .top_px() | |
| 141 | − // .my_auto() | |
| 142 | − // .w_full() | |
| 143 | − // .h_px() | |
| 144 | − // .fill(LabelColor::Hidden.hsla(cx)), | |
| 145 | − // ) | |
| 146 | − // }) | |
| 136 | + .when(self.strikethrough, |this| { | |
| 137 | + this.relative().child( | |
| 138 | + div() | |
| 139 | + .absolute() | |
| 140 | + .top_px() | |
| 141 | + .my_auto() | |
| 142 | + .w_full() | |
| 143 | + .h_px() | |
| 144 | + .fill(LabelColor::Hidden.hsla(cx)), | |
| 145 | + ) | |
| 146 | + }) | |
| 147 | 147 | .children(runs.into_iter().map(|run| { |
| 148 | 148 | let mut div = div(); |
| 149 | 149 | |