Closed Bug 127857 Opened 23 years ago Closed 23 years ago

Change scale textbox to dropdown (accomodating ``shrink to fit'') in print preview toolbar

Categories

(Core :: Print Preview, defect)

x86
Windows 2000
defect
Not set
major

Tracking

()

VERIFIED FIXED
mozilla1.0

People

(Reporter: rods, Assigned: rods)

References

Details

(Whiteboard: [adt2])

Attachments

(2 files, 3 obsolete files)

If the PrintSettings has "shtinktofit" set as true then the scaling UI needs to
be disabled.
Keywords: nsbeta1
Status: NEW → ASSIGNED
Priority: -- → P3
Target Milestone: --- → mozilla1.0
Nav triage team needs info: These seem to interoperate in a useful way, is there
a reason why it needs to be disabled?  How will users know why it is disabled?

cc marlon for UE input.
Whiteboard: [need info]
Peter, that's true.  It should not be disabled, one should simply override the
other.  if we provided the actual value % in the box, as shrunk to fit, that
would be helpful in some cases.  so if user changes that value to something else
then  we uncheck the box. 
Thanks Marlon!

nsbeta1- per Nav triage team, ->1.2.
Keywords: nsbeta1nsbeta1-
Whiteboard: [need info]
Target Milestone: mozilla1.0 → mozilla1.2
OK, then let's morph this bug or close it in favor of a new one that gets the
current % based on shrink to fit.
This bug will deal with the originally reported defect although we will
implement the following solution:

(*) discrete values in a drop down instead of the scale textfield
(*) last value will be ``Shrink to fit'' (or ``Fit to page width''/doc's wording) 

(Morphing bugs is evil but this deals with the original issue we are trying to
tackle.)  Renominating for nsbeta1.
Keywords: nsbeta1-nsbeta1
nsbeta1+/adt2 per Nav triage team
Keywords: nsbeta1nsbeta1+
Whiteboard: [adt2]
Target Milestone: mozilla1.2alpha → mozilla1.0
Attached patch patch (obsolete) — Splinter Review
Add new methods to check the PrintSettings for its current values and setup the
UI appropriately. It is also called after a return from Print Preview.
Severity: normal → major
Priority: P3 → --
The agreed design is documented in comment 5.  The patch in comment 7 doesn't
appear to match the agreed design.
Summary: Scaling in PP toolbar should be disabled when doing "shrink to fit" → Change scale textbox to dropdown (accomodating ``shrink to fit'') in print preview toolbar
taking
Assignee: sgehani → rods
Status: ASSIGNED → NEW
Status: NEW → ASSIGNED
Attached patch patch with combobox (obsolete) — Splinter Review
This uses a combobox for discrete values, Cutom and ShrinkToFit
Attachment #79810 - Attachment is obsolete: true
The combobox doesn't show up Linux (which is correct) until 119491 gets fixed.
Comment on attachment 82195 [details] [diff] [review]
patch with combobox

>+      <xul:data value="&customPrompt.title;"/>

I can see us using the xul:data strategy to get the string if we plan on
landing this in beta (since strings are frozen for now) but the trunk (and
post-beta branch?) should use the string bundle strategy.

>       <field name="mDebug">
>-        false
>+        true
>       </field>

I think you forgot to switch this back to false since I take it you are done
debugging.  :o)

>+          // XXXsamir the type was mismatched

We can lose this line.

With those changes r=sgehani.
Attachment #82195 - Flags: review+
Comment on attachment 82195 [details] [diff] [review]
patch with combobox

sr=alecf, but man it sure would be nice if we didn't have to hardcode the
childNodes[] indexes.
Attachment #82195 - Flags: superreview+
made samir's changes
Attachment #82195 - Attachment is obsolete: true
Comment on attachment 82579 [details] [diff] [review]
final patch with suggested changes

Bringing r and sr forward
Attachment #82579 - Flags: superreview+
Attachment #82579 - Flags: review+
Some of the changes for this patch are already in the tree, this is the reduced
patch.
Attachment #82579 - Attachment is obsolete: true
Comment on attachment 82636 [details] [diff] [review]
final patch merged with tree

bringing r/sr forward
Attachment #82636 - Flags: superreview+
Attachment #82636 - Flags: review+
Can we do something about this bug? we're gonna get a flodd of bugs
saying that scale does not work. users are not gonna figure out
easily that they have to go into Page Setup and disable STF.
Blocks: 143051
fixed on trunk
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Keywords: adt1.0.0
Blocks: 143120
verified in 5/9 trunk build.
Status: RESOLVED → VERIFIED
Blocks: 143047
Keywords: approval
Whiteboard: [adt2] → [adt2] [Needs a=]
adding adt1.0.0+.  Please get drivers approval and then checkin to the 1.0 branch.
Keywords: adt1.0.0adt1.0.0+
Comment on attachment 82636 [details] [diff] [review]
final patch merged with tree

a=chofmann,dbaron,valeski for the 1.0 branch.
Attachment #82636 - Flags: approval+
These small set of changes are need because Bug 115136 has not yet been checked
into the branch. These changes are merely to pass back whether the PageSetup
Dialog was ok'ed or cancelled. These tested out fine on Windows and Linux, will
test on Mac.
Comment on attachment 83887 [details] [diff] [review]
minor additional changes

sr=attinasi
Attachment #83887 - Flags: superreview+
Comment on attachment 83887 [details] [diff] [review]
minor additional changes

r=dcone
Attachment #83887 - Flags: review+
Whiteboard: [adt2] [Needs a=] → [adt2]
fixed on branch
Keywords: fixed1.0.0
this bug is not fixed on 5/20 branch.
WFM: Bug is fixed on WinNT and WinXP using 2002-5-20 branch build for me.
verified in 5/21 branch build.
Keywords: verified1.0.0
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: