Giter Site home page Giter Site logo

Comments (7)

vinothwindows47 avatar vinothwindows47 commented on May 27, 2024

@benkeen @nicolashenry Please response my problems . whether it is possible to fix it or not .

from ace-diff.

benkeen avatar benkeen commented on May 27, 2024

Hi @vinothwindows47, sorry for the wait! Hmm... you may be right. I was under the impression that you could just style the connectors with CSS to change their line heights, but apparently my memory was incorrect.

I'll do a little investigation and get back to you shortly.

from ace-diff.

benkeen avatar benkeen commented on May 27, 2024

Heya, again sorry for the wait.

  1. So word-wrap is a bug. I'll create a separate issue for that one - well spotted.
  2. How do you set the custom font-sizes? Ace works by keeping track of the calculated line-heights, then making them accessible via ace.renderer.lineHeight - which ace-diff uses to determine the height of the connector lines. So in my case it seems to be working fine. see screenshot of font-size:18px

screen shot 2015-12-06 at 8 27 31 am

This changes the font like so: body .ace-editor { font-size: 18px }

could you post your CSS that's changing the font-size but causes the bug?

from ace-diff.

benkeen avatar benkeen commented on May 27, 2024

Hey again - sorry for all the posts. Regarding the word-wrap, did you enable that by editing the ace-diff JS code? Correct me if I'm wrong, but currently ace-diff doesn't support that feature, correct?

from ace-diff.

Spope avatar Spope commented on May 27, 2024

I don't know for @vinothwindows47 but at first I have used the Ace api for font size : this.differ.editors.left.ace.setFontSize(14); this.differ.editors.right.ace.setFontSize(14);
and this create the same connectors alignment problem.
Anyway, setting font size by css does actually works correctly.

from ace-diff.

vinothwindows47 avatar vinothwindows47 commented on May 27, 2024

Ok.Thank you @Spope .I will try it .

from ace-diff.

vinothwindows47 avatar vinothwindows47 commented on May 27, 2024

Thanks @benkeen @Spope .Font size working as usual . It is my fault . Because I have set fontsize after

this.lineHeight = this.editors.left.ace.renderer.lineHeight;

So that it is not working .But it is working when i set like this ,

this.editors.left.ace.setFontSize("15px");
this.editors.right.ace.setFontSize("15px");

this.lineHeight = this.editors.left.ace.renderer.lineHeight;

from ace-diff.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.