@@ -386,20 +386,44 @@ func (s Style) GetStrikethroughSpaces() bool {
386386 return s .getAsBool (strikethroughSpacesKey , false )
387387}
388388
389+ // GetTopFrameSize returns the sum of the style's top margins, padding
390+ // and border widths.
391+ func (s Style ) GetTopFrameSize () int {
392+ return s .GetMarginTop () + s .GetPaddingTop () + s .GetBorderTopSize ()
393+ }
394+
395+ // GetRightFrameSize returns the sum of the style's right margins, padding
396+ // and border widths.
397+ func (s Style ) GetRightFrameSize () int {
398+ return s .GetMarginRight () + s .GetPaddingRight () + s .GetBorderRightSize ()
399+ }
400+
401+ // GetBottomFrameSize returns the sum of the style's bottom margins, padding
402+ // and border widths.
403+ func (s Style ) GetBottomFrameSize () int {
404+ return s .GetMarginBottom () + s .GetPaddingBottom () + s .GetBorderBottomSize ()
405+ }
406+
407+ // GetLeftFrameSize returns the sum of the style's left margins, padding
408+ // and border widths.
409+ func (s Style ) GetLeftFrameSize () int {
410+ return s .GetMarginLeft () + s .GetPaddingLeft () + s .GetBorderLeftSize ()
411+ }
412+
389413// GetHorizontalFrameSize returns the sum of the style's horizontal margins, padding
390414// and border widths.
391415//
392416// Provisional: this method may be renamed.
393417func (s Style ) GetHorizontalFrameSize () int {
394- return s .GetHorizontalMargins () + s .GetHorizontalPadding () + s . GetHorizontalBorderSize ()
418+ return s .GetRightFrameSize () + s .GetLeftFrameSize ()
395419}
396420
397421// GetVerticalFrameSize returns the sum of the style's vertical margins, padding
398422// and border widths.
399423//
400424// Provisional: this method may be renamed.
401425func (s Style ) GetVerticalFrameSize () int {
402- return s .GetVerticalMargins () + s .GetVerticalPadding () + s . GetVerticalBorderSize ()
426+ return s .GetTopFrameSize () + s .GetBottomFrameSize ()
403427}
404428
405429// GetFrameSize returns the sum of the margins, padding and border width for
0 commit comments