File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed
composeApp/src/commonMain/kotlin/component
miuix/src/commonMain/kotlin/top/yukonga/miuix/kmp/extra Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -334,7 +334,7 @@ fun TextComponent() {
334334 items = dropdownOptions,
335335 selectedIndex = dropdownOptionSelectedRight.value,
336336 onSelectedIndexChange = { newOption -> dropdownOptionSelectedRight.value = newOption },
337- mode = DropDownMode .AlwaysAtRight
337+ mode = DropDownMode .AlwaysOnRight
338338 )
339339
340340 SuperDropdown (
@@ -366,7 +366,7 @@ fun TextComponent() {
366366 items = spinnerOptions,
367367 selectedIndex = spinnerOptionSelectedRight.value,
368368 onSelectedIndexChange = { newOption -> spinnerOptionSelectedRight.value = newOption },
369- mode = SpinnerMode .AlwaysAtRight ,
369+ mode = SpinnerMode .AlwaysOnRight ,
370370 )
371371
372372 SuperSpinnerAsDialog (
Original file line number Diff line number Diff line change @@ -275,7 +275,7 @@ fun SuperDropdown(
275275 LazyColumn (
276276 modifier = Modifier
277277 .onGloballyPositioned { layoutCoordinates ->
278- offsetXPx = if (mode == DropDownMode .AlwaysAtRight || ! alignLeft) {
278+ offsetXPx = if (mode == DropDownMode .AlwaysOnRight || ! alignLeft) {
279279 dropdownOffsetXPx + componentWidthPx - insideRightPx - layoutCoordinates.size.width - paddingPx - if (defaultWindowInsetsPadding) displayCutoutLeftSize.value else 0
280280 } else {
281281 dropdownOffsetXPx + paddingPx + insideLeftPx - if (defaultWindowInsetsPadding) displayCutoutLeftSize.value else 0
@@ -443,5 +443,5 @@ val dropdownStates = mutableStateListOf<MutableState<Boolean>>()
443443 */
444444enum class DropDownMode {
445445 Normal ,
446- AlwaysAtRight
446+ AlwaysOnRight
447447}
Original file line number Diff line number Diff line change @@ -213,7 +213,7 @@ fun SuperSpinner(
213213
214214 if (isDropdownExpanded.value) {
215215
216- val alwaysRight = mode == SpinnerMode .AlwaysAtRight
216+ val alwaysRight = mode == SpinnerMode .AlwaysOnRight
217217
218218 if (! dropdownStates.contains(isDropdownExpanded)) dropdownStates.add(isDropdownExpanded)
219219 LaunchedEffect (isDropdownExpanded.value) {
@@ -609,5 +609,5 @@ data class SpinnerEntry(
609609 */
610610enum class SpinnerMode {
611611 Normal ,
612- AlwaysAtRight
612+ AlwaysOnRight
613613}
You can’t perform that action at this time.
0 commit comments