Sign up | Lost password? | Help

[ advanced search ]

{ white-space: nowrap } not taken when printing

Forums » Opera Community » Opera for desktop » Opera browser

Tuesday, 25. July 2006, 16:57:35

Ti

♡.. (^_^);

avatar

Posts: 222

France

{ white-space: nowrap } not taken when printing

Hello,

It seems the
white-space: nowrap;
doesn't work on print.
I tested in IE and it works over there.

I tested this on TD element like this :
<table>
  <tr>
    <td style="white-space: nowrap;">texte très très long bla bla bla bla oulalah</td>
    <td>texte très très long bla bla bla bla oulalah</td>
    <td>texte très très long bla bla bla bla oulalah</td>
    <td>texte très très long bla bla bla bla oulalah</td>
    <td>texte très très long bla bla bla bla oulalah</td>
    <td>texte très très long bla bla bla bla oulalah</td>
    <td>texte très très long bla bla bla bla oulalah</td>
  </tr>
</table>


Paste this in new file and print. The first cell should be on one line (as displayed on screen) even if it makes the table to be clipped out by the limited width of the page.
But the first cell is word-wrapped as the others.

Tuesday, 25. July 2006, 17:04:46

barulheira

I think

avatar

Posts: 1176

No problem here, at least using print preview. I didn't print indeed.
Build 8542, Windows XP

Wednesday, 26. July 2006, 22:32:39

Ti

♡.. (^_^);

avatar

Posts: 222

France

Well I have Opera 9 build 8502. It's the one that's on the main download page (not a weekly build nor a beta version). I tested under XP and 2000 with the same result:
The first column which should not word-wrap, does in print preview.
In your test, the first column staid long and made the others thiner then ? (as it should)

Here are some screenshots to illustrate.

Print preview, you can see the bug :
print_bug.png

In screen mode the first column is well displayed though :
screen_ok.png

Thank you for your hint Sérgio ... Maybe I just have to wait for Opera 9.1 ? :rolleyes:

Thursday, 27. July 2006, 11:01:43

barulheira

I think

avatar

Posts: 1176

Yes, it seems the bug is fixed for Opera 9.01. I already recommend you to start using the last weeklies. They are already stable enough (more than 9 final) in many users' opinions (including mine).

Friday, 28. July 2006, 09:04:28 (edited)

Ti

♡.. (^_^);

avatar

Posts: 222

France

Whow thank you Sérgio.
Now that the version 9 is out (with everything I waited for!), I don't install weeklies anymore..

Do someone here has the version 9 to confirm the bug on another machine ?

Tuesday, 8. August 2006, 19:43:50

Snover

avatar

Posts: 21

I am still experiencing this bug with Opera 9.01 build 400 (Linux).

Wednesday, 9. August 2006, 10:13:00

Ti

♡.. (^_^);

avatar

Posts: 222

France

I upgraded to Opera 90.1 9.01 build 8552.
The bug is still there.

For convenience I attach the test file nowrap.htm.
Press SHIFT+P to print preview.
You'll see that the 2 cells which contains the text (white-space: nowrap) are wrapped while they shouldn't wrap.
As an alternative, launch the same page inside IE or Firefox (sorry folks) and select File > Print preview. There it works. :left:

Wednesday, 9. August 2006, 10:58:30

barulheira

I think

avatar

Posts: 1176

It seems a regression. I confirm the bug in 8552. The bug was not in the latest weekly in July 25th. I don't have those files to test it again.

Tuesday, 8. July 2008, 07:58:58

Ti

♡.. (^_^);

avatar

Posts: 222

France

Still bugs (2008, Opera 9.51 10081).

Tuesday, 8. July 2008, 12:23:49

nafmo

Nerd

avatar

Posts: 574

Norway

Originally posted by Ti:

Still bugs (2008, Opera 9.51 10081).


Try disabling the “Fit to paper width” setting in the print properties and see if that helps. Since paper usually is a lot narrower than a screen, the default setting in Opera is to enable the “Fit to…” to make the printout look reasonable (compare to what happens when you enable “Fit to width” for screen display).

Tuesday, 8. July 2008, 13:06:18

Ti

♡.. (^_^);

avatar

Posts: 222

France

Sorry but I coulnd't find the fit to page button. If it's the same than in normal page view mode, it is not active.
Did you try the attached sample ? (nowrap.htm)
See that it works in IE (without truncating the page anyway) but not in Opera (see first column).
Hint: Just use the print preview in both browsers not to waste paper.

Tuesday, 8. July 2008, 16:58:51

sgunhouse

Volunteer

avatar

Posts: 52543

Flag City, USA

Fit to paper width is in the Print Options dialog, I believe.

Wednesday, 9. July 2008, 10:57:46

nafmo

Nerd

avatar

Posts: 574

Norway

Originally posted by Ti:

Sorry but I coulnd't find the fit to page button.


FilePrint Options

Wednesday, 9. July 2008, 11:49:33

Ti

♡.. (^_^);

avatar

Posts: 222

France

Thanks, if I don't print with the default configuration it's OK.
But why does such a config changes the rendering of a page that, anyway, is not wider than the page?

  • There is no reason that Fit to width breaks the white-space:nowrap before shrinking all the other shrinkable content
  • In this case, There is no reason that Fit to width changes anything because the page already fits the width by itself

Forums » Opera Community » Opera for desktop » Opera browser