How to overly sider of antd layout over antd content - antd

I want to overly antd sider over antd content
I tried to apply zIndex but it's not correct approach
Please suggest me any correct approach
https://ant.design/components/layout/#Layout.Sider

Related

How to use Ant Design custom scrollbar outside of select?

Antd uses custom scroll bar in selects. Is there any way to replace default Windows scrollbar with it in other Ant scrollable lists and tables?

Right align ComponentRenderer in a Vaadin TreeGrid

It is possible to align text content in a Vaadin TreeGrid column using setTextAlign(ColumnTextAlign.END), however this does not work if the column is using a ComponentRenderer, in my case it is rendering a MenuBar component.
Does anyone know if it is possible to right align a ComponentRenderer without resorting to a template or wrapping it in a HorizontalLayout?

Move Grid save and cancel buttons from far right, maybe left justify

Is there a way in Vaadin 7 or Vaadin 8 to move the save/cancel buttons to under the last editor column? Or maybe to left justify them? Right now they are right justified under the last column. I would even take left justifying them under this same column. Visually, it is far from the last thing the users edited, so some users get confused. The way I am clarifying it for users right now is by making the Grid as narrow as possible, but it wastes screen real estate.
This will be very difficult in generic case, where column widths can be freely adjusted or their widths are automatically calculated by content. However if you set your columns fixed widths, so that you can make assumptions based on that within your specific application, there is a solution.
Just noting, that the Editor has div, with class name "v-grid-editor-footer", which has the same width as the Grid. So the editor footer does not have logical cells, that would be aligned with Grid's cells. And that is the challenge here. Furthermore the buttons you are refering to are wrapped in a child div of the previous one, with class name "v-grid-editor-buttons"
However you can try to add css rules in your theme in the following way.
.v-grid-editor-buttons {
position: relative;
left: -300px; // Adjust this value experimentally so that it fits your need
}
Below is a screenshot the css applied to Vaadin's Sampler.

Vaadin chart not using up correct width

In Vaadin 14.6.1, I have created a horizontal layout with 2 charts (and some other stuff). The charts are not using up the correct width -- they seem to not "pick up" on the right width (see screenshot below). I set the width to 100% etc. Also, this problem disappears if I use a simpler component, such as label, instead of charts (from Highcharts). I've experienced a similar problem before, but in more complex settings (e.g. a user adjusts the splitlayout and the underlying chart does not resize). But in this case, it's an even more reasonably straightforward scenario (i.e. no adjustment by user of the width of any layout) and yet Vaadin doesn't seem to pick up the right width, at least when using charts. Is this a known or reproducible issue? If so, any workaround?
Charts indeed behave badly with some layouts. I have noticed two cases. The other is the Board component, where the workaround is just simply wrap Chart inside Div, i.e.
Div div = new Div();
div.add(chart);
// and then add div to Board
SplitLayout is more tricky. You need to call Chart to reflow after splitter has been moved. Something like the following finds all the charts and forces them to redraw.
splitLayout.addSplitterDragendListener(event -> {
getUI().ifPresent(ui -> ui.getPage().executeJs(
"Array.from(window.document.getElementsByTagName('vaadin-chart')).forEach( el => el.__reflow());"));
});
Note, if you have only one chart or have conveniently the references to chart instances you can do
chart.getElement().executeJs("$0.__reflow();", chart.getElement());

How to scroll cells only and not the entire tableview? [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
How do you disable tableview scrolling but enable cells to scroll within the section similar to how path for iPad does their friend and and notification cells, they are collapsable but the cells under the section only scroll within the section as in the section does not move to the top of the device but remains in its position.
There is no such controls available in iOS.
Possibly it is a customized UITableView. According to your description, each section of that table will contain another UITableView not simple UITableViewCell. That's why it have the feature you specified.
I had seen some open-source controls with similar feature, but forgot the name of those controls.
Your question is too broad, its better if you can add more details. But I will give you a rough answer to my understanding of your problem. What you can do is use UITextView in side your tableview cell and depending on the scenarion you can disable the scroll. It is recommended you keep only one scroll view scrollable at one time. UITableView is also inherits from UIScrollView. You can set the scroll disabling to your gesture handle methods or in a expanded cell scenario. To set scroll disable you can set scrollEnabled property to no.
Refer to http://developer.apple.com/library/ios/#documentation/uikit/reference/UIScrollView_Class/Reference/UIScrollView.html#//apple_ref/occ/cl/UIScrollView

Resources