mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
Allow ValueViewers to have a bounding box different from the Style's. This closes #64.
This commit is contained in:
@@ -189,15 +189,6 @@ int Style::update(Context& ctx) {
|
||||
return changed;
|
||||
}
|
||||
|
||||
bool Style::isVisible() const {
|
||||
return visible
|
||||
&& (width()) > 0
|
||||
&& fabs(left()) < 100000
|
||||
&& fabs(right()) < 100000
|
||||
&& (height()) > 0
|
||||
&& fabs(top()) < 100000
|
||||
&& fabs(bottom()) < 100000;
|
||||
}
|
||||
bool Style::hasSize() const {
|
||||
int h = is_setw(width) + is_set(left) + is_set(right);
|
||||
int v = is_setw(height) + is_set(top) + is_set(bottom);
|
||||
|
||||
Reference in New Issue
Block a user