-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Search Box in Class List renders one line below where it should #10
Comments
This stems from the default Yard template? Might be worth filing an issue there as well. A potential fix could benefit all Yard users. |
Yes it does, as this http://www.rubydoc.info/gems/yard/ has the same issue, The stylesheet "
EDIT: It actually does work. It's not the kind normal search feature (that then displays a results page.)
Okay, I'm checking https://github.com/lsegal/yard/issues to see if this has ever been logged.
|
Loren Segal said, in lsegal/yard#392 (comment):
|
@thomthom: It looks as though @MSP-Greg has been working on this. He tried (JUL 2016) to get Loren to accept a revamped styling of the List pane static header div, but Loren wanted all the changes broken up into separate pull requests. See: Looking at one of Greg's pages, (https://msp-greg.github.io/ruby_2_3/Core/index.html) I can see now that the right padding (24px) was likley for a magglass icon (such as Greg has,) but at some point was removed from the default YARD template. Greg puts the "Search" into the I like Greg's solution more than mine! But it requires a change to the erb files, as well to add the placeholder attribute. (And collapse and expand all buttons at the time, nice.) So, we can wait until Greg resubmits these to YARD master. There are a number of nice fixes, like the scrollbar fix. (It intrudes up into the header now.) The easiest quickest temporary fix, might be to delete the "Search: " caption from your template. |
Boy, and I was having so much fun trying to build an updated mingw gdbm package for compiling in Ruby trunk (2.5.0). It's failing to compile on one of the tests, which stops the build. Not fun. I'll have to think about this. I seem to recall that YARD will allow one to add css files, and they're added after the standard files. So that might be a solution; just change the sizing or something similar. This issue is browser dependent, I don't recall which device/OS/browser it was, but some render it on one line. I noticed it on an iPad, and it just added to the this does not work on a tablet feeling. Obviously, I've done a bit of work on YARD's c parsing, inheritance chains, attributes, aliases, templates, etc. After a few PR's to YARD, I decided that what I wanted to do was too large to try and do a PR at a time. It's a pretty significant rewrite of the template system / js using XMLRequest/AJAX, no jQuery, etc. When one is dealing with libraries like Rails or AWS (with 20k methods), iFrames cause too much reloading, scrolling, etc. For instance, every time the list pane is reloaded, events are (re)attached to every item. Off topic, hows the font sizing on my site? Some people have had issues, and I've only tested on a few devices. BTW, my templates have code built in for a full width top header box like SU has... |
Sorry, I didn't even notice this was a new repo with the SU plugin code. You're already adding css files.
|
|
This will not work because we want the search box. (It works!) What we don't need is the caption " <div id="search">Search: <input type="text"></div> |
Sorry, I didn't look at the html. That was one thing that was quite a bit of discussion back in the start of XML days (allowing text nodes along with element nodes). I've used content before and after, but never tried to change the content with css. Or maybe something like div#search font-size: 0;, div#search input font-size \d\d... I'll have a look. Think I'm done for the night. |
Looks fine at 100% in Comodo Dragon (Chromium) on both my internal 15" and external 25" SD (100ppi) displays. |
Hey this seems to work: div.fixed_header div#search input {
position: absolute;
} At least the inputbox will not wrap by itself. It will eventually if the List pane is made too thin, but it wraps along with the "Search:" caption. The div.nav_wrap {
min-width: 225px;
} |
off topic
Do both displays allow you to left dock both the LIST and TOC panes? I've tried to make the font sizing just css based, but I may have to do it in script, based on some kind of pixel based ratio of mono-spaced font width and screen width.
I'd prefer to get the css right rather than force users to change the zoom / text settings. This morning I opened the SU API site on my iPad and it's kind of DOA. Re yard-t2, I've kind of forgotten many of the changes I've made. I checked the methods list html of SU vs T2. SU has five elements for each method, T2 has three. That's an example of the many 'breaking changes' that I've made to YARD. Loren could never accept those kind of changes, as they might break a lot of people's plugin code, etc. Conversely, I always run T2 against the YARD trunk branch, so T2 is not very sensitive to the type of changes that are being done (or accepted) to YARD. FWIW, with no changes, T2 runs the 'plugin' YARD uses for it's 'tags' list and doc additions. I did have to muck with the AWS plugin to get it to run. Long story short, many of the changes of I've made in T2 will not easily port back into YARD. At present, T2 does what I'd like it to do for my personal use, and it generates the html used on msp-greg.github.io. It's wrapped in a bunch of 'git related' code for that, I just run a single rb file. Depending on how many libraries have been updated, it can take a while... I'd be happy to let Trimble use T2, but I suspect my time frame for releasing it open source is beyond what Trimble would prefer in terms of finishing the 'new SU API docs' project. Finally, as long as SU is doc'ing its API, it would be nice if it also doc'd the Ruby versions it was using. Users would have all the docs at one site, rather than one site for SU, and another for Ruby. Gems are beyond the scope... |
Oh yea, right now we just want to get the API docs fixed. (Errors corrected, and examples updated.) This issue is simply about fixing that darned search box in the List header.
Also, not related, but already discussed here: SketchUp/ruby-api-docs#32 (comment) Thomas doesn't want to take this on now. (It is complex, because SketchUp has used 1.8.0, 1.8.5, 1.8.6-p287, 2.0.0-p247, and now 2.2.4-p230, over the various versions, and platforms. And, until SU2014, the Mac and Windows platforms used different Ruby versions. There have been added methods and breaking changes that affected plugins run on earlier SketchUp versions.) |
Okay, I just noticed something weird. This "line wrapping bug" is still present in Comodo Dragon which is behind Chrome by four full (major) versions. or more. I am beginning to migrate back to Chrome because of lack of Dragon development , and that Gmail will no longer support Chrome that far behind. Also, I've come to see that Dragon is not much more than an advertising tool for other Comodo products, like GeekBuddy (which I keep having to uninstall.) Anyway, I noticed that this issue does not occur on Chrome I also just checked MSIE v11, and it also appears to be a non-issue. |
Closing, as this appears to be a Comodo Dragon specific issue (due to Dragon's builds falling way behind the current Chrome build.) |
In the left nav column, the "Search:" textbox renders one line below where it should.
It covers up half of the top line of the listing.
Cause
full_list.css:50
rule
#search
has css attributeswidth: 170px;
andpadding-right: 24px;
This rule works fine for the
div#search
in theiframe#search_frame
that displays in a popup window, when the main content window is too narrow. (It's adisplay: none;
toggling trick between the two nav divs.)The
div#search
(with this wrapping issue) in the Class List is within a separateiframe#nav
(although both iframes get loaded from the same document "../class_list.html
")[If you haven't noticed yet, YARD html is generated with multiple elements with the same id names. For example, there are several
div#content
on the same display page, although two are within iframes.]We need to specifically target this
div#search
inside theiframe#nav
, ie:[Moved this issue from the sketchup-api-docs project.]
The text was updated successfully, but these errors were encountered: