JavaScript UI Libraries & Blazor Components Suite – Smart UI › Forums › Tabs › Problems with tab dimension
- This topic has 8 replies, 3 voices, and was last updated 3 weeks, 6 days ago by
Markov.
-
AuthorPosts
-
October 13, 2022 at 10:23 am #103857
tbettinazzi@axioma.it
ParticipantAs You suggested in a previous post I created a tab
<smart-tabs onChange=”changedTab(this)” style=”width : 100%” selected-index=”0″ class=”auto-height” id=”tabsConfiguration”>
with auto-height class.
Usually it works but if one of the last elements in the tab content is a dropdown list, the list opens but is partially visible because of the tab border.
I don’t know, a priori, the size of the tab content and the size of the list.
How can I solve ?
Tks
Tullio
-
This topic was modified 2 years, 5 months ago by
tbettinazzi@axioma.it.
October 13, 2022 at 4:12 pm #103866admin
KeymasterHi Tullio,
if you have dropdownlists, by default the popup is part of the dropdownlist and if there is not enough available space, the dropdown will not be fully visible. You can optionally display it, if the dropdown is added to the document’s body. The dropdownlist has a property called ‘dropDownAppendTo’. If you set it to body, the dropdown will be added to the document’s body so it will always be on top of other elements.
Best regards,
Peter StoevSmart UI Team
https://www.htmlelements.com/October 21, 2022 at 4:46 pm #103897tbettinazzi@axioma.it
ParticipantI tested Your solution and it seemed to work.
However it produces a dramatic effect : my dropdown are within a formĀ and, if i set dropDownAppendTo to body, values of the dropdownlist are not passed back.
I need a different solution.
Could You suggest it ?
Tks
Tullio
October 22, 2022 at 2:11 pm #103899admin
KeymasterHi Tullio,
The dropdownlist’s value is passed with the form when the ‘name’ property of the component is set.
Best regards,
Peter StoevSmart UI Team
https://www.htmlelements.com/October 23, 2022 at 7:05 am #103900tbettinazzi@axioma.it
ParticipantName component was set but when appnd to is set to body it is not passed in my tests.
February 24, 2025 at 2:52 pm #112270tbettinazzi@axioma.it
ParticipantI’m forced to reopen this issue because the problem went out again.
Using auto-height in smatr-tabs id there’s a combo opening in the tab it’s not shown completely.
I can’t use the dropDownAppendTo feature to append id to the body becuase the combo whithin a form andI don’t get back the selected value.
How can I solve that issue ?
Tks
February 25, 2025 at 7:39 am #112273Markov
KeymasterHi,
The solution is to set the dropDownAppendto property of the ComboBox and also set its “name” property which is used in the form submit.
Best Regards,
MarkovSmart UI Team
https://www.htmlelements.com/February 25, 2025 at 8:14 am #112274tbettinazzi@axioma.it
ParticipantSorry but I already have the name attribute in the dropdown list but still it doesn’t work.
Data are not sent back by the form.
Tks
February 26, 2025 at 8:25 am #112284Markov
KeymasterOk, you can try something else then – add a hidden input and sync it with the value of the dropdownlist when the dropdownlist’s value is changed i.e subscribe to the “change” event of the dropdownlist. In the event handler, set the value of the hidden input.
Best Regards,
MarkovSmart UI Team
https://www.htmlelements.com/ -
This topic was modified 2 years, 5 months ago by
-
AuthorPosts
- You must be logged in to reply to this topic.