Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: Create responsive apps #2906

Merged
merged 5 commits into from
Nov 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions modules/applications/applications-nav.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
***** xref:ui-builder/common-apis-to-use.adoc[Common APIs to use]
***** xref:ui-builder/how-to-retrieve-user-avatar.adoc[Retrieve user avatar image]
***** xref:ui-builder/reuse-code-and-components.adoc[Reuse code and components]
***** xref:ui-builder/create-fully-responsive-apps.adoc[Create fully responsive applications]
*** xref:ui-builder/resources.adoc[Resources]
*** xref:ui-builder/faq.adoc[FAQ]
** xref:ui-designer/uid-applications-index.adoc[Living applications with Bonita UID]
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,8 @@ xref:ui-builder/how-to-retrieve-user-avatar.adoc[[.card-title]#Retrieve user ava
--
xref:ui-builder/reuse-code-and-components.adoc[[.card-title]#Reuse code and components# [.card-body.card-content-overflow]#pass:q[Improve maintenance and consistency between your applications]#]
--

[.card.card-index]
--
xref:ui-builder/create-fully-responsive-apps.adoc[[.card-title]#Create fully responsive applications# [.card-body.card-content-overflow]#pass:q[Enhance the layout to ensure the application is fully responsive]#]
--
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
= Create Fully Responsive Applications
:description: Enhance the layout to ensure the application is fully responsive.

{description}

Although applications built with UI Builder are responsive by default, certain settings should be avoided to ensure full responsiveness.

== Fixed Height

Setting a fixed height for a widget may cause display issues on different window sizes.

For example, if you set the `Height` property to `Fixed` for a Container widget, the content may become truncated when the window is resized.

== Scroll Content

For some widgets, for example the Container widget, you can use the `Scroll content` property if you want to maintain a fixed size.

== Example

1. Drop a Container widget on the page:
- Set the `Height` property to `Fixed`
- Disable the `Scroll contents` property

2. Drop a Text widget inside the Container:
- Expand it to the width of the Container
- Add some text to fill the Text widget

Preview the page and resize the window: you will see that the content is truncated when the window is small:

image:ui-builder/guides/responsive-container-ko.png[responsive-container-ko, 400, 200]

Now, set the `Height` property of the Container to `Auto Height` and preview the page again:
you will see that the content is displayed correctly, the Container height adapts to the content:

image:ui-builder/guides/responsive-container-ok.png[responsive-container-ok, 400, 200]
Loading