Hi all. I need to disable the shadow of a page but didn't find any way to do so. One way is to set the shadow color to the background color of the background component. But this seems to take no effect to the center position of the page. I want to center the page without the shadow. Is this possible?

asked 13 Dec '11, 23:18

Hardie82's gravatar image

Hardie82
76318
accept rate: 7%


In the next release it will be possible to disable parts of the background page by setting pageShadow-, pageBorder- or pageBackgroundColor to null in mxGraphComponent.

link

answered 07 Jan '12, 22:16

Gaudenz's gravatar image

Gaudenz
80.1k1310
accept rate: 39%

edited 07 Jan '12, 22:18

I have checked your changes for the version 1.9.1.1 and maybe there is a bug at the method mxGraphComponent#zoom(final boolean page, final boolean center)? There you substract 8px, that seems to be the shadow width of a page. I think you have to check, whether the pageShadow is null to center the page during zooming.

(23 Feb '12, 21:49) Hardie82

Thanks for the report, this will be fixed in the next release.

(04 Mar '12, 22:43) Gaudenz
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×194
×5

Asked: 13 Dec '11, 23:18

Seen: 1,595 times

Last updated: 04 Mar '12, 22:43