Skip to main content

Seadragon.ControlAnchor class

Version 0.8.8 - Back to Seadragon Ajax API Reference

Overview

Used to define which corner a control is anchored to. This allows newly added controls to be placed without overlapping previous controls, and for controls to stretch and shrink as another control is resized.

Values

NameDescription
NONEThe control is not anchored; it must be absolutely positioned through CSS.
TOP_LEFTThe control is anchored to the top-left corner of the viewer.
TOP_RIGHTThe control is anchored to the top-right corner of the viewer.
BOTTOM_RIGHTThe control is anchored to the bottom-right corner of the viewer.
BOTTOM_LEFTThe control is anchored to the bottom-left corner of the viewer.