Bug 47164 - QWebPage::javascriptprompt does not wrap long text
Summary: QWebPage::javascriptprompt does not wrap long text
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: 528+ (Nightly build)
Hardware: S60 Hardware S60 3rd edition
: P1 Blocker
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-04 22:59 PDT by bhavya.s-g
Modified: 2010-10-08 02:37 PDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description bhavya.s-g 2010-10-04 22:59:26 PDT
When a long text eg: "This is a really long text, that should be well readable and wrapped in a nice way! Click any button." is used as a text in the prompt, it gets truncated; only partial message is shown in the prompt. However the same thing works fine for QWebPage::javascriptConfirm. 
NOTE: THIS IS BLOCKING THE "INTEROPERABILITY TEST" OF OUR CUSTOMER. HENCE MARKING IT AS  A BLOCKER
Comment 1 Mahesh Kulkarni 2010-10-08 02:37:29 PDT
Below example on chrome/safari/mozilla browser wraps label text of input box. 
But in QtWebkit it does not. 

<html><body><script>

prompt("some really long text example! some really long text example! some really long text example! some really long text example! some really long text example! some really long text example! some really long text example! some really long text example! some really long text example!");

</script></body></html>


Problem is with QInputDialog of Qt class which is used by QWebPage::javascriptPrompt() function. 

QInputDialog owns QLabel which by default has "no word wrap" enabled. No straight way to access QLabel from this dialog to set this property (QLabel::setWordWrap). 
This should be fixed by qt4.7 either by setting wordwrap for qinputdialog or providing API to set it.