You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi there,
I am using the example 'nt_example1' to create a news ticker. Is it possible to customize row_height dynamically according to the screen resolution? For example, if the screen resolution 1024px, the row_height is set to be 100px. However, if the screen resolution is smaller than that, I would need around 150px for the row_height. Is there any way to change it based on the screen resolution?
Or is it possible to adjust the row_height according to the size of the content?
The text was updated successfully, but these errors were encountered:
Hi,
The plugin does not currently support fluid row height. However, you can achieve this very easily using updateOption method. Check this fiddle : http://jsfiddle.net/h7kxC/ (try to resize the viewport)
I just created a function which check the current window width and update the plugin's row_height :
or use the "hasMoved" option like this for dynamic height:
hasMoved: function(){
var visibleHeight = $('.newsticker li:visible').height();
visibleHeight = visibleHeight - 1;
$('.newsticker').animate({'height': visibleHeight}, 100);
}
and also add this to the resize function
Hi there,
I am using the example 'nt_example1' to create a news ticker. Is it possible to customize row_height dynamically according to the screen resolution? For example, if the screen resolution 1024px, the row_height is set to be 100px. However, if the screen resolution is smaller than that, I would need around 150px for the row_height. Is there any way to change it based on the screen resolution?
Or is it possible to adjust the row_height according to the size of the content?
The text was updated successfully, but these errors were encountered: