Is there a way, to setup Layout on declarative way for next scenario:
Desired Layout:
Header, Footer, Nav are ok.
Problem is how to setup content to work on a responsive way, and in the same time to cover some scenarios:
Big Screen
Widget 1 should fulfill section 1, in case the content of Widget 1 is longer than section 1 - the scroll bar should be visible just on Widget 1
Inside a section, there could be more than one widget. It should have option for example in Section 2 to say those two widget should be 50%-50% or any other proportion. If content of any widget is longer - the scroll should be on widget. or to don't have proportion, just list of widgets - in that case scroll should be on Section 2 (if content of all widgets is longer than section 2)
Small Screen
Section 2 should go below Section 1. Now, "fill section space" and proportions, probably does not make sense, and probably each widget should have some "max-height" settings
Thanks,
Misa
Related
Can't program quite not complicated structure so be so kind as to prompt me how can I solve this problem. I have tabPanel and on the first tab I want to place three panels but in specific order:
enter image description here
Panel 0 (layout vbox) consist of Panel 1, 2 and 3 each are constructed with form fields and one grid. This is working properly. But when I try to add Panel 4 I receive empty tab.
Regarding your image the Panel 0 should use layout 'hbox' in my understanding.
I didn't worked with ExtJS 4, so I don't know the layouting mechanism, but what I saw is that the elements in my fiddle disappear when I remove the flex property.
Possibly the following fiddle is what you want:
https://fiddle.sencha.com/#view/editor&fiddle/3cog
I am looking for a way to display 2 hierarchy levels in the main menu or some sort of tabbed menu.
Let me explain:
I have a site in 3 sections (I will not use subdomains), each with a hierarchy below.
Therefore on the homepage, the 3 sections should appear in the main menu.
On the top level page of a section (or the section homepage) the 3 sections should also be shown, but with the current section highlighted. Below the sections, it should show a menu of the items in the section. Al in the main menu
On any page in a section, the current section should appear highlighted and the top level of the hierarchy in the section should be shown. (and the current branch in the hierarchy should be highlighted).
I hope some image will help the explanation:
menu in 2 levels
hierarchy with green blocks for homepage and section homepages
I will be using the avada theme, (and as a non-technical person) any suggestions on how I can easily tweak the menu will be appreciated.
I do not mind using a plugin if that helps.
Is there any way to make a widget's config and move buttons be placed at the top of the widget itself.
As it is one has to hover over a widget in order to see which one of the items in the widget zone it belongs to. This is impossible though when the content of the widget is not in the same screen space (I had to zoom out in the browser in order to get the below screenshot) unless you zoom out and then zoom back in.
In this image, there are 3 seperate widgets (red, white and green respectively) in a single widget zone.
Also, when the mouse leaves the widget the widget config/move buttons are no longer visible.
One solution is to right-click on the widget and then scroll up to the config wheel but this is not something I want to tell my editors they have to do.
Has anyone else come across this problem and if so, how did they solve it?
This can happen when you have CSS conflicts. You can use Chrome Inspector, Firebug, or IE developer tool to investigate and see if anthing is 'overlapping' those buttons (often a floating div is overlapping the buttons and intercepting the 'click')
Then once you figure out a css class to make it work, just add it to your style sheet with ".EditMode " before it, this is a special class that is on the body when in page editor.
Example:
.EditMode .MyFloatingDivThatsCoveringTheWidgets {
z-index: 0;
}
I'd like to use jquery masonry within a drop down menu, to organize the dynamic menu item blocks (images and text) in a complex drop down menu.
I'm having a couple of issues.
First of all, if I start with display:none then masonry doesn't do any position calculations. Since I'm using masonry with a drop down menu, I can't open the page with the drop down visible.
Secondly, the menu container has to be position:absolute so that the drop down opens Over the continuing page and doesn't push down the text below the menu. Masonry pushes the rest of the page down.
Thirdly, with IE 8 and 9 (didn't try 7 yet), when the I hide and show the dropdown, the blocks of items start off unorganized and then instantly switch to the organized masonry layout. It's the flash on every hide and show that I don't understand and can't get rid of.
Has anyone successfully used jquery masonry within a dropdown menu?
Thanks
According to the first issue, just use visibility:hidden and in hover event visibility: visible instead of display:none & display:block.
I have this main window on which I would like to put 2 widgets on the same space, i.e. when the user clicks a button then one of the widgets should come up front and the other be hidden and then change places when clicking another button.
My Widget are of different types: one is a QGLWidget and the other one is a QGraphicsView.
How could I put these 2 widgets on the same place?
Use QStackedWidget. Qt Doc says that :
The QStackedWidget class provides a stack of widgets where only one
widget is visible at a time.