]> git.lyx.org Git - features.git/commitdiff
Make script inset much tighter in texted.
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Wed, 15 Jan 2020 10:08:38 +0000 (11:08 +0100)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Wed, 15 Jan 2020 10:13:54 +0000 (11:13 +0100)
We use the fact that offsets can be set separately for each inset.

src/insets/InsetScript.h

index 1aee8e8dd00852085b125e70cd4bc8c27c744d8d..cd61117a3f47c6fdf04a53d574ffd32c66ae11a4 100644 (file)
@@ -68,6 +68,16 @@ public:
        docstring layoutName() const;
        ///
        DisplayType display() const;
+
+       ///
+       int topOffset(BufferView const *) const { return 0; }
+       ///
+       int bottomOffset(BufferView const *) const { return 0; }
+       ///
+       int leftOffset(BufferView const *) const { return 0; }
+       ///
+       int rightOffset(BufferView const *) const { return 0; }
+
        ///
        void metrics(MetricsInfo &, Dimension &) const;
        ///