Vote count: 0 I'm trying to have a div that scrolls which is contained within a flex element that's expanded to fill the page. Currently it just overflows its container. I've taken a look at questions such as: Scrolling a flexbox with overflowing content with no luck This is my current structure: .base { background: lightblue; display: flex; flex-flow: column; height: 100vh; padding: 0 20px; } .column { display: flex; flex-flow: column; flex: 1 0 auto; background: lightgreen; /* overflow: hidden; */ } .instructions { background: red; display: flex; flex-flow: column; } .header { background: teal; } .content { background: blue; overflow: scroll; } this is the header This is content This is a ...
ادامه مطلبVote count: 0 How can I embed a dynamic image created with GD inside another dynamic image generated with GD? Both files work fine if they are separated, but when I try to use one inside the another it doesn't work. Image 1: Image 2: Now, if I try to use image generated in image2.php inside image1.php: Any ideas? Thanks! asked 28 secs agoAngel Jonathan Let's block ads! بخوانید...
ادامه مطلبVote count: 0 I'm unable to find an answer to this, or I'm not looking in the right place, but I'm trying to find a way where I can group a number of elements (panels) inside one large panel using both AngularJS and Bootstrap. So for example, I have around 60 or so mini panels that represent customer contact forms. All of these forms sit inside one large panel with an ng-repeat. I am wanting to somehow group my contacts by different criteria (e.g By State code or by Company Type, etc.) from a dropdown control. I would like all contacts to be shown in the one panel but segregated by a .page-header (a similar setup to the example below): Has anyone seen any examples of this anywhere, or have a...
ادامه مطلبVote count: 0 I want to call a function from outside the controller and pass it the button id. This is my current code : Manage // .. More code × Manage Company {{testData}} Close And this is the content of my controller app.controller('ModalCtrl', ['$scope', '$http', function($scope, $http) { $scope.clickMe = function() { $http.post('/modalRoutes/cdata', { id: 0 // Button ID should go here }).success(function(cdata) { $scope.testData = cdata; }); }; }]); asked 43 secs agoTrax Let's block ads! بخوانید...
ادامه مطلبVote count: 0 I'm trying to create a link to an id tag wich is inside a dropdown menu and is placed on another page. link to id tag on another page The problem is when I click the link it goes to the right page but not shows the content because it is inside a collapsed dropdown bootstrap menu 01. Vuestro hijo está en Educación Primaria Victoria Urzáiz Celigueta I need to deploy the right menu when the link is clicked (I will have more than one menu). Any clue? Thanks! asked 42 secs agoNacho Vargas Let's block ads! بخوانید...
ادامه مطلبVote count: 0 I am writing an application that needs to draw outside of it's main window area. I already have to code to actually do the drawing: [DllImport("User32.dll")] public static exte IntPtr GetDC(IntPtr hwnd); [DllImport("User32.dll")] public static exte void ReleaseDC(IntPtr hwnd, IntPtr dc); IntPtr desktopPtr = GetDC(IntPtr.Zero); Graphics g = Graphics.FromHdc(desktopPtr); g.DrawLine(Pens.White, 0, 0, Screen.FromControl(this).WorkingArea.Width, Screen.FromControl(this).WorkingArea.Height); g.Dispose(); ReleaseDC(IntPtr.Zero, desktopPtr); However the on paint event is an unsuitable place to put the code because it's not called when something outside of the form is redrawn. So my que...
ادامه مطلبVote count: 0 Can sitemap XML files be outside of root directory? I can't put the file into the Root of the website. Is there anything I can do? asked 23 secs agoVlad Let's block ads! بخوانید...
ادامه مطلبVote count: 0 Suppose I have a table with 100vh height, how to set minimum height for thead according to inside and maximum tbody? ... ... asked 1 min agoSevi Let's block ads! بخوانید...
ادامه مطلبVote count: 0 Better meaning good looking, more readable code. for (init; condition; increment) { Printf("Hello, world!"); ) for (init; condition; increment){ Printf("Hello, world!"); ) asked 1 min agocolemilne54 Let's block ads! بخوانید...
ادامه مطلبVote count: 0 I have a list of team weightings based on picking 11 players (based on their outfield positions) from each team. Below is a screenshot of the list and its code: SELECT TeamID, SUM(PlayerWeighting) as TeamWeight FROM ( SELECT * FROM( SELECT pl.*, ROW_NUMBER() OVER(PARTITION BY pl.TeamID, pl.Position ORDER BY NEWID()) AS Rnk FROM( SELECT DISTINCT p.PlayerID, p.Position, p.PlayerWeighting, p.FirstName, p.Suame, t.TeamID, t.TeamAbbreviation, f.WeekNumber FROM dbo.Fixture f INNER JOIN dbo.League l ON f.LeagueID = l.LeagueID INNER JOIN dbo.Team t ON l.LeagueID = t.LeagueID INNER JOIN dbo.Player p ON t.TeamID = p.TeamID WHERE f.WeekNumber = 1) pl) po WHERE (po.position = 'GK' and po.k...
ادامه مطلبVote count: 0 I'm creating a custom control for windows 10. I know that I can attach events to the TemplateChildren by using GetTemplateChild("Button") and then I can assign a method for example to the Tapped Event. Now I want to assign an Method to an event outside the Control .cs class. In Mainpage.xaml I can assign e.g. a Method to the Tapped event like this: . But how can I assign a method to a child of that control and not to the whole? Like for example I got a custom control with a grid and an Button, how can I only handle the Button Click Event in the Mainpage.xaml.cs file and NOT in the control file? I tried this in my Control .cs class: AppBarButton b; In the method which is loaded ...
ادامه مطلبVote count: 0 Is there any way to run a function and get the retu value as a parameter for a function? Let me explain: I have a ton of functions lying around in my code which are just there for waiting a certain amount of seconds before something takes place. Since I only use them in one circumstance, I wanted to put them inside of my method that uses them somehow. (I'm using Unity3D.) Example: public void SayHiAfterSeconds(float seconds) { StartCoroutine(sayHiAfterSeconds(seconds)); } IEnumerator sayHiCoroutine(float seconds) { yield retu new WaitForSeconds(seconds); print("Hi."); } I want to put the sayHiCoroutine function inside of SayHiAfterSeconds. Something like: public void SayHiAfter...
ادامه مطلبVote count: 0 I've been leaing how react for the past few weeks and one thing that I don't like is that I have to use teary operator for if else inside the render function. Something like : function render() { retu ( {x==="Let's go" ? : } ) } Is there a way I can use traditional If-else or switch for that matter with jsx syntax in react? asked 1 min agoAjit Let's block ads! بخوانید...
ادامه مطلبVote count: 0 Login @Html.ActionLink("Log in", "Login", "Account", routeValues: null, htmlAttributes: new { id = "loginLink", style = "color:lightgreen" }) Both go the the right action. But can I use ActionLink helper to also include the image? asked 1 min agoJuan Carlos Oropeza Let's block ads! بخوانید...
ادامه مطلبVote count: 0 When I write this way ${application.home}/logs/application.%i.log 1 100 ${SIZE}KB %date - [%level] - from %logger in %thread %n%message%n%xException%n It CREATES for me new log file when this became more tham 10 KB. But the point is that I need date and time in the name of my log file, so I've tried this with TimeBasedRollingPolicy ${application.home}/logs/application.%d{yyyy-MM-dd_HH-mm, UTC}.log ${SIZE}KB %date - [%level] - from %logger in %thread %n%message%n%xException%n And it updates ONLY if I reload my application....
ادامه مطلبVote count: 0 I have modal styled with .modal .modal-dialog { width: 80%; }, and I'm trying to fit table-responsive table to fill modal body vertically. Table has only one column, that means it has to change row width in this case I guess. asked 1 min agoRoman Sidorov Let's block ads! بخوانید...
ادامه مطلبVote count: 0 Begier coder here. I am trying to make a program that can calculated a future day by inputting today and number of days elapsed. For the most part, it works. However, I stumbled upon a tiny problem and I have been stuck with it for the past hour. `do { cout...
ادامه مطلبVote count: 0 I had seen a video where, main() can be run with in an enum. I am trying to do the same but it's not working. Here is my code public enum EnumMain { ABC, XYZ; public static void main(String[] args) { System.out.print("MIAN"); } } Output (The code compiles fine)Error: Could not find or load main class EnumMain I think this has something to do with the Java version, may be in Java 8, they are not allowing to run main() method from enum asked 1 min agoSoumitri Pattnaik 1 Answer Vote count: 0 the main method is suppose to be placed inside a class an not enumerators... public static void main(String[] args) { System.out.print("MIAN"); } answered 18 secs agoΦXoce 웃 Пepeúpa Let's bloc...
ادامه مطلبVote count: 0 Ok i have the following angular js code. What im trying to do is to set some scopes to null when enter button is pressed inside a form. So far I have div with ng-click event that sets these scopes to null, but i want to make the same with enter key also. App directive: app.directive('ngEnter', function () { retu function (scope, element, attrs) { element.bind("keydown keypress", function (event) { if(event.which === 13) { //access scopes here like that //$scope.eurval = null; //$scope.usdval = null; //$scope.otherval = null; scope.$apply(function (){ scope.$eval(attrs.ngEnter); }); event.preventDefault(); } }); }; }); App.controller app.controller('formCtrl', function($scope) {...
ادامه مطلبVote count: 0 Is it possible not using JavaScript? I could find on the inteet how to stick the footer to bottom, but I don't know how to make the sidebar equal size to the content if it has less text. If the height of the content is more than page, scrolling should appear. what do I need asked 2 mins agoJ. Doe Let's block ads! بخوانید...
ادامه مطلب