Registered Member
|
I'm getting this problem when posting on this forum. I have only tried it with Konqueror, so it may work fine with other browsers. This behavior seems random, and I can't seem to figure out under what circumstances this happens.
Last edited by neverendingo on Thu Dec 18, 2008 2:09 pm, edited 1 time in total.
Type Colemak!
Proud, Conservative Republican "Gentlemen! You can't fight in here! This is the war room!" --President Merkin Muffley, Dr. Strangelove |
KDE Developer
|
I saw that on another MyBB board with Konqueror. Doesn't ever happen with Firefox.
|
Registered Member
|
All right, but I'm not about to give up Konqueror.
Type Colemak!
Proud, Conservative Republican "Gentlemen! You can't fight in here! This is the war room!" --President Merkin Muffley, Dr. Strangelove |
Registered Member
|
Actually the editor has got a statement that it should cancel loading the editor if it recognizes konqueror. See http://forum.kde.org/jscripts/editor.js
What it does is it determines the size of the textarea by getDimensions() on the html object, which is whacky. If I disable stylesheets it displays two textareas. message_new and message_old. message_old seems to inherit the size of the real textarea (id=message), but message_new doesn't. You could try styling both the textareas by their id (message_new, message_old).
'And all those exclamation marks, you notice? Five? A sure sign of someone who wears his underpants on his head.' ~Terry Pratchett
'It's funny. All you have to do is say something nobody understands and they'll do practically anything you want them to.' ~J.D. Salinger |
Administrator
|
Ok, added them to the stylesheets, let me know if it works now. |
Registered Member
|
It seems to work =)
http://peperjohnny.de/snapshot4.png
PeperJohnny, proud to be a member of KDE since 2006-Dec.
Do you dare? |
Administrator
|
|
Administrator
|
ahh, i always forget to report upstream... thx rob!
|
Registered Member
|
As I was the one to recommend the styling I want to add something. I'm not registered in the other forum, so perhaps someone can forward that.
Adding the CSS to set the size of that text box is not really the nicest solution, because 1) it doesn't solve the core issue of undefined rows/cols attributes of the textareas and 2) it uses pixel-based measurement. I just recommended the CSS because I thought it is the easiest for the KDE forums, without fiddling with the JS and trying it out in all browsers. I cannot try it at the moment, but usually the right fix would be to modify editor.js so it sets the "cols" and "rows" attribute programatically from the values of the existing one. So in the part where you do textInput = document.createElement("textarea"); You should also do textInput.setAttribute("cols", oldTextbox.getAttribute("cols")); and the same for the rows.
Last edited by Andre on Wed Oct 15, 2008 11:50 am, edited 1 time in total.
'And all those exclamation marks, you notice? Five? A sure sign of someone who wears his underpants on his head.' ~Terry Pratchett
'It's funny. All you have to do is say something nobody understands and they'll do practically anything you want them to.' ~J.D. Salinger |
Administrator
|
Ok, thx for the input, i will forward it to the mybb forum.
|
Registered Member
|
The textbox is also generated in tiny dimensions, when you edit your signature and click on preview.
|
Administrator
|
Ok, applied the css patch to the signature field as well. Though i think the js patch should be best for all textfields. But hadn't the time to test it yet.
For now it works, i hope. Let me know if not. Thanks for reporting. |
Registered Member
|
Registered users: Bing [Bot], Google [Bot], kesang, Sogou [Bot], Yahoo [Bot]