Bug 47164
Summary: | QWebPage::javascriptprompt does not wrap long text | ||
---|---|---|---|
Product: | WebKit | Reporter: | bhavya.s-g |
Component: | Layout and Rendering | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED INVALID | ||
Severity: | Blocker | CC: | bhavya.s-g, maheshk |
Priority: | P1 | ||
Version: | 528+ (Nightly build) | ||
Hardware: | S60 Hardware | ||
OS: | S60 3rd edition |
bhavya.s-g
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
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Mahesh Kulkarni
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.