9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: "Russ Cox" <rsc@swtch.com>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] rio scaling
Date: Fri, 14 Dec 2007 12:53:19 -0500	[thread overview]
Message-ID: <20071214175251.801E91E8C1C@holo.morphisms.net> (raw)
In-Reply-To: <4761300C.6070208@gmx.de>

> Should programs rely on rio making ther windows always a goodrect or 
> should it deal with the
> case of drawing in a 10x10 or 1x1 image?

I've occasionally wanted to create tiny windows
(for example I originally made bargraph less tall)
and it's a little annoying that rio's requirements for
text windows applies to windows that won't be
managed by rio.

The right solution is to fix libframe to gracefully handle
the case where the window has no room for text.

> I experimented a little bit to find a work arround to this problem. I 
> added code to rio
> to not making windows smaller than 100 x (3*font->height), but if you 
> make rio bigger again
> (after shrinking) the window gets too big. So i think about just not to 
> scale subwindows at all
> to preserve position and size of the subwindows.

It's nice that rio shrinks the subwindows when you
resize.  It just needs to be able to handle the consequences.

Russ


      reply	other threads:[~2007-12-14 17:53 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-12-13 13:13 Kernel Panic
2007-12-14 17:53 ` Russ Cox [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20071214175251.801E91E8C1C@holo.morphisms.net \
    --to=rsc@swtch.com \
    --cc=9fans@cse.psu.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).