Příspěvky

Zobrazují se příspěvky z 2013

Parent css selector with Sass / Less preprocessor

Excellent example of using a LESS preprocessor --- https://coderwall.com/p/rufqta ---

DevExpress BarEditItem Closing-Editor at runtime to obtain entered value

Obrázek
I think everybody already faced problem with value in editor by DevExpress WinForms application. Usually it happens when we want to use value immediately the ENTER was pressed in EditorCell. The first action we have to do is CloseEditor, to force editor store the entered value. The problem comes when the editor is placed into toolbar as the BarEditItem. The BarEditItem has no CloseEditor method implemented. After short investigation I learned, that current editor is not runned under BarEditItem but by the link to BarEditItem. The BarEditItem has collection of Links, which reference all instances of this BarEditItem displayed in the menu. So if you want close the editor, you must find the correct one by Links array. My final solution is Extension method to BarEditItem, which closes all possible linked editors (yup, little hack, but helpful). Here is my code: using   System ; using   System . Collections . Generic ; using   System . Linq ; using  ...

CSS - Exact same height and alignment of text and input text box in major browsers

Obrázek
This is the story about long time testing behaviour of this feature for Firefox, IE9, Chrome, Opera and Safari. My goal was to have pretty labelled text input fields on the web site, which are connected together to one visual compact object. Finally I was successful but not for 100%. There is still browser reaction to different  fonts, font-size and browsers. But anyway, there are results with different fonts here: As you can see, there was a goal to keep element compact in different themes, which I have in my application. May goal was also to have independent <input type="text"> element, so wished behaviour was to make automatically compacted label and text element when the label exists. If label does not exist I wanted to have same input-text , but without joining to the text ( second text-item row in result ). Finally result does not work for 100% in all browsers and themes, it needs short "trimming" of the vertical p...