s&
newspaper
About
info
About s&box
newspaper
Latest News
published_with_changes
Changes
map
Roadmap
monitoring
Metrics
games
Games
sports_esports
Browse Games
rocket
Discover Games
business_center
Workshop
sports_esports
Games
landscape
Maps
chair
Models
texture
Materials
apparel
Clothing
construction
More..
forum
Forum
docs
Docs
docs
Documentation
dashboard
Api Reference
school
Tutorials
input
Log in with Steam
chevron_left
Change Language
简体中文
English
Русский
Español
Português-Brasil
Deutsch
日本語
Français
Polski
Türkçe
한국어
Pirate
Italiano
ไทย
繁體中文
Українська
Čeština
Nederlands
Magyar
Dansk
Suomi
Svenska
Norsk
Ελληνικά
Română
Български
Tiếng Việt
Bahasa Indonesia
Español-Latinoamérica
العربية
Api
Classes
LengthUnit
chevron_left
Classes
enum
LengthUnit
search
Static Fields
crop_din
Auto
crop_din
Center
crop_din
Contain
crop_din
Cover
crop_din
Em
crop_din
End
crop_din
Expression
crop_din
Percentage
crop_din
Pixels
crop_din
RootEm
crop_din
Start
crop_din
Undefined
crop_din
ViewHeight
crop_din
ViewMax
crop_din
ViewMin
crop_din
ViewWidth
Static Methods
functions
IsDynamic
LengthUnit
Possible units for various CSS properties that require length, used by Sandbox.UI.Length struct.
enum
Sandbox.UI
.
sealed
Sandbox.System
crop_din
Static Fields
16
Auto
LengthUnit
The layout engine will calculate and select a width for the specified element.
Center
LengthUnit
In the middle of the parent at the appropriate axis.
Contain
LengthUnit
For background images, contain the image within the element bounds.
Cover
LengthUnit
For background images, cover the entire element with the image, stretcing and cropping as necessary.
Em
LengthUnit
Font size of the current element.
End
LengthUnit
End of the parent at the appropriate axis.
Expression
LengthUnit
Represents a calc( ... ) expression
Percentage
LengthUnit
The length is a percentage (0-100) of the parent's length. (typically)
Pixels
LengthUnit
The length is in pixels.
RootEm
LengthUnit
Font size of the root element.
Start
LengthUnit
Start of the parent at the appropriate axis.
Undefined
LengthUnit
Similar to CSS 'unset', basically means we don't have a value; should only really be used under certain circumstances (e.g. to handle background sizing properly).
ViewHeight
LengthUnit
The length is a percentage (0-100) of the viewport's height.
ViewMax
LengthUnit
The length is a percentage (0-100) of the viewport's largest side/edge.
ViewMin
LengthUnit
The length is a percentage (0-100) of the viewport's smallest side/edge.
ViewWidth
LengthUnit
The length is a percentage (0-100) of the viewport's width.
functions
Static Methods
1
IsDynamic
(
unit
)
bool
Determine whether this unit type is dynamic (ie. should be updated regularly) or whether it's constant
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.