unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* NS port and fancy OS X scrollbars
@ 2016-02-23 23:27 Alan Third
  2016-02-24  9:56 ` Anders Lindgren
  2016-02-24 21:21 ` Alan Third
  0 siblings, 2 replies; 5+ messages in thread
From: Alan Third @ 2016-02-23 23:27 UTC (permalink / raw)
  To: emacs-devel; +Cc: Anders Lindgren

I was reading through Anders's wish-list for the NS port and noticed
the bit about implementing the new OS X 'floating' scroll bars. As I'd
been looking at scrollbars for a bug report anyway I figured I'd try
to work out what would be required.

As far as I can tell the 'right' way to do it is to create an
NSScrollView and put your buffer content into another NSView within
it. This seems to give you native scrollbars for a lot less work than
is being done at the moment. However I think we'd lose the ability to
put the vertical scrollbars on the left. I don't know how important
that feature is.

I think there's a bigger problem, though. It looks to me like the mode
line is currently drawn into the same NSView as the rest of the
buffer, so just wrapping the current NSView with an NSScrollView would
result in the vertical scrollbar overlapping the mode line, and the
horizontal scrollbar below it.

Am I right about this? If so then it seems the only way to get the
floating scrollbars would be to recreate the effect ourselves, which I
suspect is rather a lot of work.
-- 
Alan Third



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-02-28 13:04 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-23 23:27 NS port and fancy OS X scrollbars Alan Third
2016-02-24  9:56 ` Anders Lindgren
2016-02-24 19:34   ` Alan Third
2016-02-24 21:21 ` Alan Third
2016-02-28 13:04   ` Bozhidar Batsov

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).