Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 28 Oct 2018 19:29:07 +0000 (UTC)
From:      Devin Teske <dteske@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r339844 - head/usr.sbin/bsdconfig/share
Message-ID:  <201810281929.w9SJT7ws049319@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dteske
Date: Sun Oct 28 19:29:07 2018
New Revision: 339844
URL: https://svnweb.freebsd.org/changeset/base/339844

Log:
  Fix dialog autosizing to accomodate for hline
  
  dialog will conditionally ignore the --hline option if not enough space
  was available to accomodate for the text width. Traditionally the width
  of the widget had to be 10 wider than the text. Recent updates to dialog
  have changed the requirement to be at least 12 wider than the hline text
  else the hline text is not rendered at the bottom of the widget.
  
  Sponsored by:	Smule, Inc.

Modified:
  head/usr.sbin/bsdconfig/share/dialog.subr

Modified: head/usr.sbin/bsdconfig/share/dialog.subr
==============================================================================
--- head/usr.sbin/bsdconfig/share/dialog.subr	Sun Oct 28 18:32:47 2018	(r339843)
+++ head/usr.sbin/bsdconfig/share/dialog.subr	Sun Oct 28 19:29:07 2018	(r339844)
@@ -646,7 +646,7 @@ f_dialog_infobox_size()
 		# Xdialog(1)).
 		#
 		if [ ! "$USE_XDIALOG" ]; then
-			__n=$(( ${#__hline} + 10 ))
+			__n=$(( ${#__hline} + 12 ))
 			[ $__n -gt $__width ] && __width=$__n
 		fi
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201810281929.w9SJT7ws049319>