Is it possible to set a certain number of thumbnails for fotorama - fotorama

For example, I have 10 photos but i need to display only 4 thumbs. Now the width of thumb's wrapper takes width of fotorama.

In the 4.5.0 new option was added, navwidth:
Have a look at fiddle: http://jsfiddle.net/artpolikarpov/8xQhC/embedded/result,html,js/

Related

High stocks charts displays fewer values even though plot value exists

I have combination chart as displayed in the fiddle using highcharts
https://jsfiddle.net/u1p2ebk0/3/
but while displaying September month plots are not showing the custom icons on the chart really not sure why is this behavior and also when i click no 1m zoom custom icons are showing but on load also it should show the icons not sure what i am missing
All flags are not displayed because there is no place for them all. When you set series.flags.allowOverlapX property to true, all flags will be shown but they will overlap each other. You can try to reduce their size or alternatively modify the amount of setting data depending on rangeSelector selection or chart size.
Let me know in case of any implementation issues.
Demo:
https://jsfiddle.net/BlackLabel/rk95uL10/
API reference:
https://api.highcharts.com/highstock/series.flags.allowOverlapX

How can I set the width of Dialog in Material UI based on the changing content?

I am creating a dialog with MUI which contains three types of content whose width is very different.
First, I need to upload an image and in the second content I need to crop it and third I have to be able to add a caption for it. So how do I set the width for the dialog such that even if images of varied dimensions are chosen it is completely shown?
For that dialog, add sx = {{ width:'fitContent' }} and try if that works

how to change the size of trigger and time selection box

As the picture show I want change the size of trigger and time selection box. I once try some methods but no use.
So, i built a fiddle: FIDDLE
According to your image you're using Neptune theme, so did i. But you haven't provided a version so i used the latest one.
Lets start with picker size. Setting width was pretty easy, but height required some css works. I define picker sizes: wSize &hSize, and fontSize at the top of the function, so you can change it.
Now about trigger size. Well trigger comes with one image of containing all sort of trigger images inside, that could be displayed(focus, hover etc.):
So i had to change parameters for all of them. I have overriden ext css classes and the thing, that you must be aware of, is that its all about proportions. For example the default size of trigger image is 110x22 and it includes 5 images of 22x22 size each. I changed the size from 22 to 33 so i had to change everything proportionally:
background-size: 110 to 165
background-position(click): 44 to 66
background-position(over): 66 to 99
...(you can see it in index.html)
So if you're going to change the size of trigger, you'll have to do some calculations.
Still there are some components inside the picker which needs to be stretched to look good, but i think you can do it yourself by taking this code as an example.

Angular ui-grid does not display properly on small screen devices(Mobile Phones)

Using Angular ui-grid latest version (4.0.0) having 6 columns and it displays correctly on laptop/desktop(Big screens) but displays very badly in small screen devices(Mobile phones), data get cut with (...) and columns display one below the other. Anything to fix it?
We already using the columnDefs with column width in % but it was not coming, though, I have figured it out actually parent div was given 100% width so it's taking viewport width and adjust grid accordingly but when parent width removed its works!!!

Change size carousel when change orientation in sencha touch 2

I put my carousel in container item.
In portrail mode, I set height 150, the images display fullscreen in carousel.
But when I change to landscape orientation, there are two white blank in two side of images.
I want change size carousel by setting another value of height. Can you help me solve this problem?
You need to catch the orientationchange event
(http://docs.sencha.com/touch/2.0.2/#!/api/Ext.viewport.Default-event-orientationchange) and upon catching it call a function which will resize your container.
You can try something like this:
Ext.Viewport.on('orientationchange', 'handleOrientationChange', this);
Then in the handle function set your desired size of component:
handleOrientationChange: function(){
Ext.getCmp('idOfMyContainer').setWidth('480px'); //or setHeight() depending on the real problem
}
You could also set the width and height according to the real size of screen, which you can get by calling these methods. Note that orientation change doesn't affect the return values of these so you would need to switch it manually:
Ext.Viewport.getWindowWidth();
Ext.Viewport.getWindowHeight()

Resources