NOTICE! This is a static HTML version of a legacy ImageJ Trac ticket.

The ImageJ project now uses GitHub Issues for issue tracking.

Please file all new issues there.

Ticket #826 (closed defect: duplicate)

Opened 2011-10-14T13:16:19-05:00

Last modified 2012-07-12T10:35:09-05:00

Crop does not always resize window

Reported by: bdezonia Owned by: curtis
Priority: major Milestone: imagej2-b3-headless
Component: Display API Version:
Severity: serious Keywords:
Cc: Blocked By:
Blocking: #1242

Description

Crop has recently been rewritten. When you do a crop sometimes the canvas does not resize to the new smaller dimensions. It looks like this is another display update/timing bug.

I have put a hack into CropImage that has detailed notes including different approaches for fixing. However until the display timing bugs are ironed out it might not make sense to tackle this yet.

Note that redoLayout() is getting called multiple times which can fix the canvas size issue. So open boats, draw overlay, and crop. If it does not resize correctly then draw a new overlay over image and the canvas resizes correctly.

Change History

comment:1 Changed 2011-10-20T16:26:52-05:00 by curtis

Fix waiting on ticket #828.

comment:2 Changed 2011-11-01T10:30:31-05:00 by curtis

  • Status changed from new to accepted

comment:3 Changed 2011-11-01T10:40:46-05:00 by bdezonia

Note: 11-1-11 - inside CropImage removed call to hack but left hack documentation in place in case it helps debug this issue.

comment:4 Changed 2012-02-27T11:00:59-06:00 by curtis

  • Milestone changed from imagej-2.0-beta1 to imagej-2.0-beta2

comment:5 Changed 2012-06-25T14:01:04-05:00 by curtis

  • Blocking 1242 added

comment:6 Changed 2012-07-12T10:25:18-05:00 by curtis

  • Status changed from accepted to closed
  • Resolution set to duplicate

Duplicate of #1101.

comment:7 Changed 2012-07-12T10:26:54-05:00 by curtis

  • Milestone changed from imagej-2.0.0-beta3 to imagej-2.0.0-beta4

comment:8 Changed 2012-07-12T10:35:09-05:00 by curtis

  • Milestone changed from imagej-2.0.0-beta4 to imagej-2.0.0-beta3