Re: How to set initial size of TextView?
- From: Chris Green <cl isbd net>
- To: gtk-app-devel-list gnome org
- Subject: Re: How to set initial size of TextView?
- Date: Wed, 15 Mar 2017 08:56:03 +0000
Eric Cashon via gtk-app-devel-list <gtk-app-devel-list gnome org> wrote:
Hi Chris,
Try getting the font height and base the textview height on that. If you
use the font ascent you might have to pad it a little but it should give
you a consistent value to size your textviews with based on font size.
OK, thanks (and thanks for the sample code too).
I'm surprised that there's no easier way of doing it but if there
isn't then that's just the way it is I suppose.
--
Chris Green
ยท
[
Date Prev][
Date Next] [
Thread Prev][Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]