I did a VF page, to show a message. how can I resize it to fit full component? thank you!  this is the code I have.
120630
We have a page layout for a custom object and want to put a Visualforce page as a section in it. However, the height of the content varies, and when I drop the section in, there is a large white space if the content does not fill. How do I deal with this (the part with the big red 'X' through it)?
62694
When writing a long post, if you want to check the output as you go along, you have to keep scrolling down and then back up to see the preview of the output.  Which gets annoying after a post gets long enough.  I imagine on Math or other sites where there is a lot of rendered output this is an even bigger annoyance.  Is it possible to give the preview box a standard size, which could be elongated at the bottom, and able to be scrolled, just like the box I'm typing in right now?  That way, I could position my window so that the editing box and the preview box are both in full view at the position that I am currently working on.
12330
There was , which I've tried. But there is one problem: the textarea doesn't shrink if you delete the content. I can't find any way to shrink it to the correct size - the clientHeight value comes back as the full size of the textarea, not its contents.  The code from that page is below:  function FitToContent(id, maxHeight) {    var text = id &amp;&amp; id.style ? id : document.getElementById(id);    if ( !text )       return;     var adjustedHeight = text.clientHeight;    if ( !maxHeight || maxHeight &gt; adjustedHeight )    {       adjustedHeight = Math.max(text.scrollHeight, adjustedHeight);       if ( maxHeight )          adjustedHeight = Math.min(maxHeight, adjustedHeight);       if ( adjustedHeight &gt; text.clientHeight )          text.style.height = adjustedHeight + "px";    } }  window.onload = function() {     document.getElementById("ta").onkeyup = function() {       FitToContent( this, 500 )     }; }
67487
What is the correct (modern) method for tapping into the window resize event that works in Firefox, , and Internet Explorer?  And can you turn both scrollbars on/off?
111043
I often add pictures to my questions. Most of the time they come out the right size. Well, that used to be OK always, up until I started posting screenshots taken by my mobile. For example, this one:  This way, I'm sure you'll agree it is huge, decidedly too big, it takes up the whole body of the question, I mean. At present, the only way I have to resize it is the following code: &lt;sub&gt;(Click image to enlarge)&lt;/sub&gt;  [&lt;img src=&quot;http://i.stack.imgur.com/hKmRp.jpg&quot; width=&quot;210&quot; height=&quot;350&quot; alt=&quot;&quot;&gt;][1]  which I do not remember, and always have to recover from . Is there a simpler, less HTML-hacky (and, I'd expect, more Markdown-based) way of resizing it? PS The output of the above code is: (Click image to enlarge)
87721
I would like to create a VF page and call a custom component inside it.    &lt;apex:page controller="MyController"> &lt;apex:form> &lt;c:mycomponent id="myId" attributeName="{attributevalue}"/> &lt;/apexform> &lt;apex:page>   But this returns me: 'c:mycomponent' component cannot be nested within form tags'  I have tried to without the  and call this page from another one using the  tag, but it doesn't work either.  I read somewhere that is not possible to do what I need, but in the past I was allowed because I have some examples in my old code.  Is there a workaround now?  Thanks in advance
71000
I am submitting a paper to a conference that has a limit of 10 pages.  I have edited and edited the text, but the paper still fills 11 pages, and I am reluctant to remove anything.  What tricks can I use to make the paper fit in 10 pages?    I know about \vspace{-1mm}, but are other and better tricks?  How can I squeeze a little bit between lines, around the elements produced by \maketitle, around headlines, etc. in a way that is consistent and does not look too ugly?  Is it possible to reduce the font size from 11 points to, say, 10.9?  (This should be community wiki, but I don't have enough rep yet.)
111836
I really love the way  works, but unfortunately it doesn't look very sharp on a , especially when juxtaposed with browser-rendered text. If you made the generated image twice its current size, it would circumvent this problem.  Could you please generate larger source images? Keeping the same width and height HTML attributes will mean that the image won't look any different for current users, so there's no chance of anything breaking.  It's a small difference, but quality is in the details!
11259
If I've 12 - 14 columns in a table to show on a page but there's not enough space to show all columns (let's say, there's only enough space to show 7 columns of the table), what is the solution for this?  I can make the page scroll horizontally but it's ugly and the last resort. Shrinking the font size of the table data only has rooms for 1  - 2 more columns at best.
109569
Is there a way to fully stretch one line of text on the full width of the page, without manually setting the letter spacing, no matter how many characters on the line?
96747
Maybe this is an easy question, maybe not.  I have a select box where I hardcode with width. Say 120px.    &lt;select style="width: 120px"&gt;   &lt;option&gt;REALLY LONG TEXT, REALLY LONG TEXT, REALLY LONG TEXT&lt;/option&gt;   &lt;option&gt;ABC&lt;/option&gt; &lt;/select&gt;     I want to be able to show the second option so that the user can see the full length of the text.  Like everything else.  This works fine in Firefox, but doesn't work with Internet Explorer6.
66335
(clickable)  Mainad has a valid height and width, however it isn't shown like subad1/subad2. Which are in essence exactly the same! (just a different background image).  Firebug shows my div as greyed out for some weird reason. Replacing the contents of mainad with just some text doesn't solve the problem (problem isn't related to inner elements)..   What's going on?! :(
21451
I am writing a program which has two panes (via CSplitter), however I am having problems figuring out out to resize the controls in each frame. For simplicity, can someone tell me how I would do it for a basic frame with a single CEdit control?   I'm fairly sure it is to do with the CEdit::OnSize() function... But I'm not really getting anywhere...  Thanks! :)
67552
I creating a control for WPF, and I have a question for you WPF gurus out there.  I want my control to be able to expand to fit a resizable window.   In my control, I have a list box that I want to expand with the window. I also have other controls around the list box (buttons, text, etc).  I want to be able to set a minimum size on my control, but I want the window to be able to be sized smaller by creating scroll bars for viewing the control.   This creates nested scroll areas: One for the list box and a ScrollViewer wrapping the whole control.   Now, if the list box is set to auto size, it will never have a scroll bar because it is always drawn full size within the ScrollViewer.   I only want the control to scroll if the content can't get any smaller, otherwise I don't want to scroll the control; instead I want to scroll the list box inside the control.  How can I alter the default behavior of the ScrollViewer class? I tried inheriting from the ScrollViewer class and overriding the MeasureOverride and ArrangeOverride classes, but I couldn't figure out how to measure and arrange the child properly. It appears that the arrange has to affect the ScrollContentPresenter somehow, not the actual content child.  Any help/suggestions would be much appreciated.
4554
How do I post text so that it is formatted as code?  What do I need to do so that my code shows up properly &mdash; not escaped or removed &mdash; when posted? And how to get the correct syntax highlighting?     For more information, see "" in the .
29742
In chat, starred messages appear in the panel to the right but are truncated to a certain length. Rather than have to follow the link to a new page, it would be useful to be able to hover over a starred message and see the full text.  Would there be demand for this?  Would this be practical to implement?  Does anyone have reason to object to this?
105195
I am using a default font size of 26px and stackoverflow's layout seems to not work well with such a large sizes.  The most important issue is that many inputs tend to overflow and partially get hidden below side text. This includes one with login, ‘Title’ and — the most important issue — the editor, which makes writing posts a little painful.  Another important one is that sometimes 'search' field doesn't fit in topbar and jumps lower, being partially hidden by logo. I met that issue on stackoverflow itself only while serverfault &amp; meta display fine (but that may be related to rep or sth).  There's one minor issue too — navbar is too narrow and ‘Ask Question’ jumps below — but this one looks quite nice (maybe it's even intended?).  Screenshot: (click to enlarge)