Browse Source

Buttons should not be containers.

David Piuva 5 years ago
parent
commit
e45dc4b88b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Source/DFPSR/gui/components/Button.cpp

+ 1 - 1
Source/DFPSR/gui/components/Button.cpp

@@ -47,7 +47,7 @@ Persistent* Button::findAttribute(const ReadableString &name) {
 Button::Button() {}
 
 bool Button::isContainer() const {
-	return true;
+	return false;
 }
 
 static OrderedImageRgbaU8 generateButtonImage(MediaMethod imageGenerator, int pressed, int width, int height, ColorRgbI32 backColor, String text, const std::shared_ptr<RasterFont>& font) {