Xamrin Grid get height by text size - view

In Xamarin Forms I use Grid to show some icons as Button and Text as Label.
I want my Icons to fit to default grid size, to do so I need to know what is the height of the Grid. But all the height values of Grid are 0.
My question are: how cant I get any Height size of this grid? Can I figure the height by text size?
P.S. I don't want to set specific height value for Grid, I want it to remain default.

Related

How to automatically grow width of NSTextField as per content but only until certain width?

I have a NSTextField. I want it to grow in width and height. However the NSTextField is inside a view. I don't want the text field's width grow beyond 60% of its super view. Once the width has reached 60% width of superview I want the text field to increase in height. Is there anyway I can achieve this using storyboards? Basically the text field is basically a subview of NSTableCellView. So I want the text field to adjust it's height whenever the table view is resized.

BIRT adjust grid row height according to chart height

I am setting the height of a chart through javascript inside html of text item. However, the grid row height remains constant and therefore, sometimes there is too much white space
I want to adjsut row height according to chart height. Please help me
Regards
Arif
You should just leave the height property of the row to blank, it will automatically be adjusted to the size of the content, in your case the height of the chart + your margins/paddings. You should also pay attention if the grid itself has a height defined.
As soon as an element has a dynamic height, most of the time we have to remove "height" properties defined in its containers

Screenshot of form whose dimensions are greater than screen dimensions

I have a TForm object whose height is greater than the required vertical resolution of my screen.
For some reason, Windows doesn't allow the visible (client?) area of the form to exceed the screen resolution, so vertical scrollbars appear on my form.
How would I get a TBitmap image or screenshot of the entire form (no scrollbars, all form components visible) so that all content of the form is visible?
At first you have to make sure the form has no scrollbars. For that you can write an event handler for FormConstrainedResize and adjust MaxWidth and MaxHeight to your needs. If the form size is restricted during design, set the required Width and Height in the FormCreate event to the desired values.
Now you can use GetFormImage to get the screenshot.

Tooltips getting cutoff in pie charts in highcharts

I have a pie chart which is being generated from a json string. The pie is getting created correctly but what is happening is the tooltip is getting cutoff when the text to be displayed in the tooltip is large. I have tried increasing the width and height of the svg area. But the charts are generated dynamically so i have no way of setting the chart widht and height dynamically depending on the content.
One can adjust the margins margin:[0,100,0,100], to shrink the pie chart so that the tooltips/labels will appear. This has been set to automatically scale the chart in Highcharts 3.0.
http://www.highcharts.com/component/content/article/2-news/53-highcharts-3-0-beta-released
http://github.highcharts.com/v3.0Beta/highcharts.js
http://jsfiddle.net/Zvrt6/1/
Increase Height and width of your chart div or put your code in jsfiddle if possible, so that we can get more idea
This example could be relevant to your situation- http://jsfiddle.net/4ac8b/1/. When you re-size the result pane you will notice the chart size changes accordingly.
You will need to set the size of your container so that the chart is drawn in that area itself. http://jsfiddle.net/4ac8b/. Even when you re-size the result pane the chart size wont change.
Change the diameter of your pie chart to allow additional information
http://www.highcharts.com/ref/#plotOptions-pie--size

How to set optimal width for labels column in jqgrid edit and view forms

jqGrid edit and view forms row labels (they are same as column captions ) are set at runtime.
Sometimes they are narrow and sometimes wide.
For narrow labels column width in too big. There is too much empty place between label text and value field.
It looks like labelswidth: '30%' value is hard coded.
How to adjust edit and view form labels columns width automatically so that if all labels are narrow, column width is smaller ?
The first which I would try to do is to use the values in pixel instead of percents:
labelswidth: 80, width: 600

Resources