You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@couchdb.apache.org by benkeen <gi...@git.apache.org> on 2015/01/22 00:14:45 UTC

[GitHub] couchdb-fauxton pull request: Full page doc editor fixes

GitHub user benkeen opened a pull request:

    https://github.com/apache/couchdb-fauxton/pull/243

    Full page doc editor fixes

    It was noticed that with larger documents we needed the horizontal
    scrollbar to appear, since some users don't have right-left
    scrolling mice/trackpads and relying exclusively on the keyboard
    wasn't sufficient. This adds the horizontal scrollbar only when
    needed, and at the very bottom of the screen, regardless of the
    height of the editor, to make it look ok.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/benkeen/couchdb-fauxton doc-editor-size-fix

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/couchdb-fauxton/pull/243.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #243
    
----
commit e318de63217b5713fe70991f88bec05d8fb077ee
Author: Ben Keen <be...@gmail.com>
Date:   2015-01-21T23:13:12Z

    Full page doc editor fixes
    
    It was noticed that with larger documents we needed the horizontal
    scrollbar to appear, since some users don't have right-left
    scrolling mice/trackpads and relying exclusively on the keyboard
    wasn't sufficient. This adds the horizontal scrollbar only when
    needed, and at the very bottom of the screen, regardless of the
    height of the editor, to make it look ok.

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] couchdb-fauxton pull request: Full page doc editor fixes

Posted by benkeen <gi...@git.apache.org>.
Github user benkeen commented on the pull request:

    https://github.com/apache/couchdb-fauxton/pull/243#issuecomment-70942238
  
    Hi @robertkowalski, this is from our discussion today. Turns out you were quite right about the `maxLines` option - it just determined the maximum visible lines in the doc, not the number of rows that could be inputted. So this refactor includes it. 


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] couchdb-fauxton pull request: Full page doc editor fixes

Posted by benkeen <gi...@git.apache.org>.
Github user benkeen commented on the pull request:

    https://github.com/apache/couchdb-fauxton/pull/243#issuecomment-71068556
  
    Great, thanks @robertkowalski :) 


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] couchdb-fauxton pull request: Full page doc editor fixes

Posted by asfgit <gi...@git.apache.org>.
Github user asfgit closed the pull request at:

    https://github.com/apache/couchdb-fauxton/pull/243


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] couchdb-fauxton pull request: Full page doc editor fixes

Posted by robertkowalski <gi...@git.apache.org>.
Github user robertkowalski commented on the pull request:

    https://github.com/apache/couchdb-fauxton/pull/243#issuecomment-71067371
  
    looks nice! tests are also green - +1


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] couchdb-fauxton pull request: Full page doc editor fixes

Posted by benkeen <gi...@git.apache.org>.
Github user benkeen commented on the pull request:

    https://github.com/apache/couchdb-fauxton/pull/243#issuecomment-71061338
  
    Thanks @robertkowalski. All fixed:
    - Rebased with master to include 2555 fix. Custom fix in this branch has been removed.
    - leaky resize() fixed
    - override of ace.js CSS line removed 



---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] couchdb-fauxton pull request: Full page doc editor fixes

Posted by robertkowalski <gi...@git.apache.org>.
Github user robertkowalski commented on the pull request:

    https://github.com/apache/couchdb-fauxton/pull/243#issuecomment-71010232
  
    garren also created a fix for 2555


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] couchdb-fauxton pull request: Full page doc editor fixes

Posted by benkeen <gi...@git.apache.org>.
Github user benkeen commented on the pull request:

    https://github.com/apache/couchdb-fauxton/pull/243#issuecomment-70945862
  
    N.B. I also snuck in a (*terrible*) fix for https://issues.apache.org/jira/browse/COUCHDB-2555?filter=12329487 The editor needs to know when the primary nav is shrunk/expanded to resize itself. I'm all ears on better solutions while we're porting stuff over to React. 



---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] couchdb-fauxton pull request: Full page doc editor fixes

Posted by benkeen <gi...@git.apache.org>.
Github user benkeen commented on a diff in the pull request:

    https://github.com/apache/couchdb-fauxton/pull/243#discussion_r23383766
  
    --- Diff: assets/js/libs/ace/ace.js ---
    @@ -12127,7 +12127,7 @@ top: 0;\
     .ace_scrollbar-h {\
     position: absolute;\
     overflow-x: auto;\
    -overflow-y: hidden;\
    +overflow-y: auto;\
    --- End diff --
    
    Absolutely. My mistake, I didn't realize I was making this change here. I'll override this in the CSS. Well spotted!


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] couchdb-fauxton pull request: Full page doc editor fixes

Posted by robertkowalski <gi...@git.apache.org>.
Github user robertkowalski commented on a diff in the pull request:

    https://github.com/apache/couchdb-fauxton/pull/243#discussion_r23370637
  
    --- Diff: assets/js/libs/ace/ace.js ---
    @@ -12127,7 +12127,7 @@ top: 0;\
     .ace_scrollbar-h {\
     position: absolute;\
     overflow-x: auto;\
    -overflow-y: hidden;\
    +overflow-y: auto;\
    --- End diff --
    
    we should never patch external dependencies directly. for example it leads to external dependencies that are not upgradable to the next version as we would lose our custom changes we made directly in the libraries. 


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---