diff options
author | Sebastian Geerken <devnull@localhost> | 2015-10-03 11:56:18 +0200 |
---|---|---|
committer | Sebastian Geerken <devnull@localhost> | 2015-10-03 11:56:18 +0200 |
commit | dcf27632f5a277a7f9bbe22402eef97e5079d37f (patch) | |
tree | 25033729ca976cdabe19729c64a743aa473bcb1b /dw/oofawarewidget.hh | |
parent | d11f25560a31a68d56a72abc6d888bc8cf2634b7 (diff) |
SRDOP: temporarily disable positioned elements, focus on floats.
Diffstat (limited to 'dw/oofawarewidget.hh')
-rw-r--r-- | dw/oofawarewidget.hh | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/dw/oofawarewidget.hh b/dw/oofawarewidget.hh index 835fbeff..a25114ba 100644 --- a/dw/oofawarewidget.hh +++ b/dw/oofawarewidget.hh @@ -76,6 +76,9 @@ namespace oof { */ class OOFAwareWidget: public core::Widget { +public: + enum { IMPL_POS = false }; + protected: enum { OOFM_FLOATS, OOFM_ABSOLUTE, OOFM_RELATIVE, OOFM_FIXED, NUM_OOFM }; static const char *OOFM_NAME[NUM_OOFM]; @@ -204,11 +207,11 @@ public: { return style->vloat != core::style::FLOAT_NONE; } static inline bool testStyleAbsolutelyPositioned (core::style::Style *style) - { return style->position == core::style::POSITION_ABSOLUTE; } + { return IMPL_POS && style->position == core::style::POSITION_ABSOLUTE; } static inline bool testStyleFixedlyPositioned (core::style::Style *style) - { return style->position == core::style::POSITION_FIXED; } + { return IMPL_POS && style->position == core::style::POSITION_FIXED; } static inline bool testStyleRelativelyPositioned (core::style::Style *style) - { return style->position == core::style::POSITION_RELATIVE; } + { return IMPL_POS && style->position == core::style::POSITION_RELATIVE; } static inline bool testStylePositioned (core::style::Style *style) { return testStyleAbsolutelyPositioned (style) || |