Flexicious Ultimate Datagrid: set height of column header - flex-datagrid

I am adding a headerRenderer to the FlexDataGridColumn. Is it possible to customize the height of the FlexDataGridColumn so that all elements of the headerRenderer are visible ?

Flexicious 2.9 has variableHeaderHeight property that should do this.

Related

How to get height from html div element?

I am using angular 5 where in a component I have one method
onFullScreen : function (event){ console.log(event[0]) }
Here, when I do console.log(event[0]), this will return this
This returns a HTMLDivElement, now I want to get the height property in my onFullScreen() method. How to get it?
The best way to get the height of an element (and lots of other layout-related properties) is to use getBoundingClientRect (https://developer.mozilla.org/en-US/docs/Web/API/Element/getBoundingClientRect).
So you can do this:
const height = event[0].getBoundingClientRect().height;
You can try this:
var height = document.getElementById('element').style.height;
Since the height is defined in inline styles for this element, this would work.
Warning: this does not work if height is not explicitly defined in css but calculated based on content or outer box.

How to edit wordpress wp_option table value

I installed a slider plugin and there are settings on wp_option table like this.
stdClass":3:O:8:"stdClass":4:{s:3:"url";s:64:"http://mysite.info/wp/wp-content/uploads/2014/09/slider1.jpg";s:6:"height";i:450;s:5:"width";i:1140;s:11:"orientation";s:9:"landscape";}}s:3:"alt";s:0:"";s:5:"title";s:7:"slider1";s:4:"link";N;s:10:"linkTarget";s:6:"_blank";s:2:"id";i:2;}}s:7:"general";O:8:"stdClass":1:{s:9:"randomize";s:0:"";}s:10:"dimensions";O:8:"stdClass":3:{s:5:"width";s:4:"1400";s:6:"height";s:3:"530";s:10:"responsive";s:4:"true";}
I want to edit width and height without replacing all of above value. How can I do it? Because of not replace all this code has image path. I don't want change it. Thanks for advice.
Just change the value of height & width in that line without altering other character
"height";i:450;s:5:"width";i:1140;s:11:"

how to create 2 column (left side 190px,right auto) layout with Yii 1.1?

i'm a new Yiier, i have a question that how could creat 2 colume layout with yii 1.1,
i means the width 190px of left div is for menu, the right is for body,the width of right is 100%,and i need a div as footer under the body div,height is 50px.
Thank you very much for your Help.
If you are using default Yii layout and style.
You should enable column2 layout in the controller of the views where you need 2 column. Or if you need it project wise do it in protected/components/Controller.php as every Controller extends this one.
So the property declartion is:
public $layout = "column2";
This file can be found under protected/views/layouts/column2.php
In this file you will find two divs with classes span-5 and span-19. If you open screen.css you will see widths of those classes 190px and 750px respectively. In the div with class-5 you can find widget CMenu in a Portlet which you should use for your menu, it is getting item list from property $menu which is simple associative array.
Similar property declaration as before:
public $menu = array(array("label"=>"Hello", "url"=>"world.com"));
Now that you have set up this, you will find your menu on the right side, you can easily rearange this. Put the div with class span-5 under the div with class span-19 and move class last from span-5 to span-19
The div footer doesn't have property height defined which means it expands but you can easily add your own style with property height set to 50px and maybe add overflow: hidden which will hide everything that goes beyond 50px. You add these properties in your own file under ../protected/css/ directory and call it with
Yii::app()->clientScript->registerCssFile(Yii::app()->request->baseUrl."/css/yourFileName.css","screen, projection");

DataTable with scroll Primefaces 3.0.M4

I am using datatable component from PrimeFaces 3.0.M4 and I use the attribute scrollable = true. I would like to customize the scrollbar with my own style, but I can not find the CSS class.
Can anyone point me out the classes that customize the scrollbar? ( the arrows and the line).
Thank you

how to convert pixel into percentage measurement in html?

I've designed one web site from asp.net & in that i designed the html pages with the help of css. In that css all the measurement that i've taken are in pixel. I want to convert all from pixel to percentage?
Is there any conversion formula for this?
how to do this?
thanks.
To change the width of a block element to a percentage value, you'll have to know the width of its container in the same units.
var widthChildPercent = widthChildPixels / widthParentPixels;
Obviously, you'll likely want to format that to an integer value when you update the style, but that will be the general formula.
You Can use THIS to convert your pixel values to percentage
I use the following formula when converting for a flexible layout from a static layout:
result = 100 * target / context
where
target is what you want to change
context is (usually) the page width you want to work with.
For example, if you have a block element <section> that currently has a width of 330px and you are working in a wrapper of 1024px, you could use 330/1024*100 which gives you a result of 32.23% for your width. However, as a rule, for fonts you want to convert to em rather than percentages.