power-media / prado3

Automatically exported from code.google.com/p/prado3
Other
0 stars 0 forks source link

Unable to adjust display of THtmlArea in callback #474

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Construct an TActivePanel containing a control (TActiveTextBox, or assumedly 
other) and a THtmlArea
2. Have another active control that causes a callback
3. In the callback code, switch which of the two controls contained in the 
TActivePanel is displayed

What is the expected output? What do you see instead?
When the TActiveTextBox is displayed, I see it.  When the THtmlArea control is 
set to be visible (setDisplay(TDisplayStyle::Dynamic)), it never appears.  I 
think it should.

What version of the product are you using? On what operating system?

Prado 3.2.2, RHEL 6

Please provide any additional information below.

In looking at the HTML, it appears the ID used for my THtmlArea (HTMLText) is 
instead on a <textarea> that precedes the <span> which has an id of 
HTMLText_parent.  Nothing ever causes the HTMLText_parent <span> to alter it's 
initial Display from "None".

(The attached is a trimmed down version of my actual page, so more complicated 
than it may need to be, but.  I'm hoping the use of ViewStates is unrelated to 
the problem I'm seeing.)

Original issue reported on code.google.com by ChrisRos...@gmail.com on 22 Aug 2013 at 4:10

Attachments:

GoogleCodeExporter commented 8 years ago
Basically what happens during the ajax callback is that the new tinyMCE gets 
created before the textarea gets replaced. The new tinyMCE is thus created on a 
"display:none" textarea and it hides itself, too.
A quick workaround is to use the Visible property instead of the Display 
property, but this is indeed a bug.

Original comment by ctrlal...@gmail.com on 24 Aug 2013 at 10:34

GoogleCodeExporter commented 8 years ago
Moved to github: https://github.com/pradosoft/prado/issues

Original comment by ctrlal...@gmail.com on 1 Oct 2013 at 10:14