Ext.container.Container layout - extjs

How to nest border layout panel inside the Ext.container.Container and container.Container is rendered to a div ?
The main reason for this type of rendering is that, to show a logo at the top of the page.
NOTE: viewport renders in whole browser. so, it cannot be used to display the logo at the top of the page.
Please help.

Do not confuse border layout with Viewport container. Viewport can't be rendered to a div but an ordinary container can be, and you can use border layout with any kind of container, including Panels. Just try it out.

Related

fluentui/react change the height of the panel

Is there a way to make the fluent ui panel smaller in height? https://developer.microsoft.com/en-us/fluentui#/controls/web/panel
My page has two divs. One header div and one content div. I would like the panel to occupy/open only the same height as the content div. Thank you
enter image description here
I couldn't find any examples

React JS : Chakra UI - Split view

I am looking for a split view in react js , i am using chakra ui for my layouts and i am not able to achive it .
Left Pane is Menu which has a fixed height (no scrolling needed)
Right Pane is the page which gets loaded every-time user selects an option in left menu.
Right pane should be scrollable.
You should give a try on the Choc-UI Layouts for achieving this:
https://choc-ui.com/docs/application-shells/sidebar-layouts
Or here too:
https://chakra-templates.dev/navigation/sidebar
On the links you will get previews of components that have a side bar on left side getting th full height of the viewport, also a sidebar and a container for your app content or other components.
This section is independent of the sidebar and navbar showed on the previews. You can access the code with the show code option on each previo (top-right location)
Try removing the navbar and modifying the width of sidebar, and you will get a split version of the layouts as you are reaching for.

Is there a way to reduce the height of the accordion in codename?

I incorporated an accordion in my sidemenu as seen in the image. The Home and Logout are not in the accordion, so their height differs. I request for help on how to reduce the height of the accordion header.
I also request for help on how I can remove the border of an accordion. I tried setting the border to empty in the accordion's UIID but it didn't work.
You can reduce the padding and font of the elements in the accordion to reduce the height of the accordion. This also lets you control the border.
You can find the applicable UIIDs in the component inspector tool. Specifically UIIDs to look at would be AccordionArrow and AccordionItem.

Codename One - container.setScrollVisible(true) in the center of a BorderLayout

I tried to use:
container.setScrollableY(true);
container.setScrollVisible(true);
The container is placed in the the center of a BorderLayout.
The container results scrollable, but the scroll bar is not visible (neither during the scrolling nor in other moments). Why?
A scrollbar will only appear if you have enough content within the container and fades out when you don't scroll. Make sure to add enough elements to the container to see it and then try scrolling.

Extjs viewport not rendering

Hi i have a viewport with two region west and center west holds panel for tree and center is a tabpanel iam usin the applyTo:div to render the panels but the problem is the jsp page im rendering to already has a header and footer when i render the viewport it goes out of the browser view and also iam not able scroll down to see all the contents..is some one has any idea about this please help...
As the ExtJS docs state:
The Viewport renders itself to the
document body, and automatically sizes
itself to the size of the browser
viewport and manages window resizing
So you don't need a viewport in this case: just render a panel with a border layout into the same div as you were rendering the viewport. Size the div with CSS so it takes up the area between the header and footer.

Resources