New topic: 

Dynamic height TextArea

<http://forums.realsoftware.com/viewtopic.php?t=46651>

         Page 1 of 1
   [ 9 posts ]                 Previous topic | Next topic          Author  
Message        paulsondervan          Post subject: Dynamic height 
TextAreaPosted: Wed Jan 23, 2013 10:02 am                                 
Joined: Fri Jul 09, 2010 7:16 am
Posts: 64
Location: Den Haag, Netherlands                I've made my first WebApp and 
it's online.
But now I discovered that the WebTextArea is behaving different on various 
browsers (what's new? ).
(Font Family is set to Helvetica, Verdana, Arial, sans-serif)

For example:
WebTextArea in Safari (6.0.2) looks fine:
 

Same WebTextArea in Firefox (18.0.1) looks fine too:


In Internet Explorer (IE9) the last line at the bottom isn't shown and I get a 
scrollbar:


On the iPad with Safari, various WebTextArea fields also get scrollbars. 

I can make the height of WebTextArea bigger, but that will give me a bigger 
white margin at the bottom on Safari and Firefox
Is it possible the make the height of a WebTextArea dynamic, so that all the 
text is always shown on a neat way?      
_________________
MacBook Pro (late 2008), OSX Mountain Lion 10.8.2, Real Studio 2012r2  
                             Top                Bob Keeney          Post 
subject: Re: Dynamic height TextAreaPosted: Wed Jan 23, 2013 10:35 am           
                      
Joined: Fri Sep 30, 2005 11:48 am
Posts: 3395
Location: Lenexa, KS                I've looked at this a couple of times and 
have bugged the RS engineers a few times about it and I've not been able to 
find anything.  As far as I know, there's no way of getting the text height of 
the content of the TextArea.      
_________________
Bob K.

Real Word Processing for your Real Studio Applications with Formatted Text 
Control
http://www.bkeeney.com/formatted-text-control/  
                             Top                Akiland          Post subject: 
Re: Dynamic height TextAreaPosted: Wed Jan 23, 2013 10:42 am                    
             
Joined: Tue Jan 04, 2011 3:02 am
Posts: 1122
Location: Jönköping, Sweden                You could have an HTMLViewer 
instead and have some HTML code in a WebFile and put it in the HTMLViewer. Use 
standard CSS in the HTML code.
Maybe you'll have some luck with that     
_________________
 http://www.linkedin.com/in/albinkiland
Dev. iMac 27" + 2x22" LG (2.8GHz Intel Core i7, 12GB RAM, 120GB SSD) OS X 10.8
REAL.Studio Web Edition 2011r3  
                             Top                Bob Keeney          Post 
subject: Re: Dynamic height TextAreaPosted: Wed Jan 23, 2013 11:18 am           
                      
Joined: Fri Sep 30, 2005 11:48 am
Posts: 3395
Location: Lenexa, KS                I'm wondering if you can get a peak into 
the control to see if the scrollbars are visible.  That would at least tell you 
*something*.      
_________________
Bob K.

Real Word Processing for your Real Studio Applications with Formatted Text 
Control
http://www.bkeeney.com/formatted-text-control/  
                             Top                paulsondervan          Post 
subject: Re: Dynamic height TextAreaPosted: Wed Jan 23, 2013 11:57 am           
                      
Joined: Fri Jul 09, 2010 7:16 am
Posts: 64
Location: Den Haag, Netherlands                I've noticed that IE9 is always 
showing a scrollbar in WebTextArea.
When the text fits into the WebTextArea the scrollbar is disabled but still 
visible without slider, but with up and down arrows.

      
_________________
MacBook Pro (late 2008), OSX Mountain Lion 10.8.2, Real Studio 2012r2  
                             Top                richardschmidt          Post 
subject: Re: Dynamic height TextAreaPosted: Wed Jan 23, 2013 2:29 pm            
             
Joined: Tue May 31, 2011 1:42 pm
Posts: 23                If you don't need an editable textarea, maybe you 
could try the label in multi-line mode to get rid of the scroll bars?

Good to see another Dutch RS developer     
_________________
RealStudio Web 2012r2.1 | MonkeyBread | MacBook Air OSX Mountain Lion | CentOS 
VPS / WHM*CPanel

My RealStudio Web applications are available at http://www.runapps.nl/english/ 
(Dutch language apps only)  
                             Top                paulsondervan          Post 
subject: Re: Dynamic height TextAreaPosted: Wed Jan 23, 2013 3:35 pm            
                     
Joined: Fri Jul 09, 2010 7:16 am
Posts: 64
Location: Den Haag, Netherlands                That would be an idea, but....
The left alignment in a WebLabel differs from left alignment in a WebTextArea. 

Top-Right = Label
Bottom-Right = TextArea
      
_________________
MacBook Pro (late 2008), OSX Mountain Lion 10.8.2, Real Studio 2012r2  
                             Top                richardschmidt          Post 
subject: Re: Dynamic height TextAreaPosted: Wed Jan 23, 2013 3:38 pm            
             
Joined: Tue May 31, 2011 1:42 pm
Posts: 23                Maybe you could apply a style with padding of a few 
pixels to solve this?      
_________________
RealStudio Web 2012r2.1 | MonkeyBread | MacBook Air OSX Mountain Lion | CentOS 
VPS / WHM*CPanel

My RealStudio Web applications are available at http://www.runapps.nl/english/ 
(Dutch language apps only)  
                             Top                paulsondervan          Post 
subject: Re: Dynamic height TextAreaPosted: Thu Jan 24, 2013 3:41 am            
                     
Joined: Fri Jul 09, 2010 7:16 am
Posts: 64
Location: Den Haag, Netherlands                I can do that, but the problem 
of the text not fitting in the WebTextArea/WebLabel using IE9 while fitting in 
Safari and Firefox still remains.      
_________________
MacBook Pro (late 2008), OSX Mountain Lion 10.8.2, Real Studio 2012r2  
                             Top             Display posts from previous: All 
posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost 
timeSubject AscendingDescending          Page 1 of 1
   [ 9 posts ]      
-- 
Over 1500 classes with 29000 functions in one REALbasic plug-in collection. 
The Monkeybread Software Realbasic Plugin v9.3. 
http://www.monkeybreadsoftware.de/realbasic/plugins.shtml

rbforumnotifier@monkeybreadsoftware.de

Reply via email to