Skip to content

Commit 520fd37

Browse files
committed
feat: remove 'stretch' for ui.inline h2oai#1535
1 parent bd14288 commit 520fd37

File tree

4 files changed

+6
-7
lines changed

4 files changed

+6
-7
lines changed

py/h2o_wave/types.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5925,15 +5925,14 @@ class InlineJustify:
59255925
AROUND = 'around'
59265926

59275927

5928-
_InlineAlign = ['start', 'end', 'center', 'baseline', 'stretch']
5928+
_InlineAlign = ['start', 'end', 'center', 'baseline']
59295929

59305930

59315931
class InlineAlign:
59325932
START = 'start'
59335933
END = 'end'
59345934
CENTER = 'center'
59355935
BASELINE = 'baseline'
5936-
STRETCH = 'stretch'
59375936

59385937

59395938
class Inline:
@@ -5955,7 +5954,7 @@ def __init__(
59555954
self.justify = justify
59565955
"""Specifies how to lay out the individual components. Defaults to 'start'. One of 'start', 'end', 'center', 'between', 'around'. See enum h2o_wave.ui.InlineJustify."""
59575956
self.align = align
5958-
"""Specifies how the individual components are aligned on the vertical axis. Defaults to 'center'. One of 'start', 'end', 'center', 'baseline', 'stretch'. See enum h2o_wave.ui.InlineAlign."""
5957+
"""Specifies how the individual components are aligned on the vertical axis. Defaults to 'center'. One of 'start', 'end', 'center', 'baseline'. See enum h2o_wave.ui.InlineAlign."""
59595958
self.inset = inset
59605959
"""Whether to display the components inset from the parent form, with a contrasting background."""
59615960

py/h2o_wave/ui.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2205,7 +2205,7 @@ def inline(
22052205
Args:
22062206
items: The components laid out inline.
22072207
justify: Specifies how to lay out the individual components. Defaults to 'start'. One of 'start', 'end', 'center', 'between', 'around'. See enum h2o_wave.ui.InlineJustify.
2208-
align: Specifies how the individual components are aligned on the vertical axis. Defaults to 'center'. One of 'start', 'end', 'center', 'baseline', 'stretch'. See enum h2o_wave.ui.InlineAlign.
2208+
align: Specifies how the individual components are aligned on the vertical axis. Defaults to 'center'. One of 'start', 'end', 'center', 'baseline'. See enum h2o_wave.ui.InlineAlign.
22092209
inset: Whether to display the components inset from the parent form, with a contrasting background.
22102210
Returns:
22112211
A `h2o_wave.types.Inline` instance.

r/R/ui.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2578,7 +2578,7 @@ ui_stats <- function(
25782578
#' @param justify Specifies how to lay out the individual components. Defaults to 'start'.
25792579
#' One of 'start', 'end', 'center', 'between', 'around'. See enum h2o_wave.ui.InlineJustify.
25802580
#' @param align Specifies how the individual components are aligned on the vertical axis. Defaults to 'center'.
2581-
#' One of 'start', 'end', 'center', 'baseline', 'stretch'. See enum h2o_wave.ui.InlineAlign.
2581+
#' One of 'start', 'end', 'center', 'baseline'. See enum h2o_wave.ui.InlineAlign.
25822582
#' @param inset Whether to display the components inset from the parent form, with a contrasting background.
25832583
#' @return A Inline instance.
25842584
#' @export

ui/src/form.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ interface Inline {
172172
/** Specifies how to lay out the individual components. Defaults to 'start'. */
173173
justify?: 'start' | 'end' | 'center' | 'between' | 'around'
174174
/** Specifies how the individual components are aligned on the vertical axis. Defaults to 'center'. */
175-
align?: 'start' | 'end' | 'center' | 'baseline' | 'stretch'
175+
align?: 'start' | 'end' | 'center' | 'baseline'
176176
/** Whether to display the components inset from the parent form, with a contrasting background. */
177177
inset?: B
178178
}
@@ -217,7 +217,7 @@ const
217217
})
218218

219219
type Justification = 'start' | 'end' | 'center' | 'between' | 'around'
220-
type Alignment = 'start' | 'end' | 'center' | 'baseline' | 'stretch'
220+
type Alignment = 'start' | 'end' | 'center' | 'baseline'
221221

222222
export const
223223
XComponents = ({ items, justify, align, inset }: { items: Component[], justify?: Justification, align?: Alignment, inset?: B }) => {

0 commit comments

Comments
 (0)